Skip to content

This is a basic Docker VM for development purposes.

Notifications You must be signed in to change notification settings

injectives/docker-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Docker VM

This is a basic Docker VM for development purposes.

Prerequisites

You must have the following installed on your system:

Configuration

You can change several default settings by creating config.yml file.

Use the sample-config.yml as a template.

Host binaries

You can use Docker in this VM directly from your host system.

To do this, you need to download the client binaries and put them on your PATH:

You must also define the following environment variable:

export DOCKER_HOST='tcp://192.168.99.10:2375'

File sharing

You can map files and folders on your host system to Docker containers as long as the path you are working with is within the VM's shared folder path, which by default is your home directory.

It is required because Docker Engine actually looks for the files on the system it is running on. In this case, it is the VM. To make the sharing from the host system work, this setup shares your home directory or some other directory of your choice with the VM at the same path.

Usage

Just run the following command and wait until it completes:

vagrant up

About

This is a basic Docker VM for development purposes.

Topics

Resources

Stars

Watchers

Forks