In a Docker installation on Linux, your machine is both the localhost and the Docker host. In networking, localhost means your computer. The Docker host is the machine on which the containers run.
Container runs the selected OS image.
Quick Start:
set PATH=%PATH%;"C:\Program Files\Git\bin"
docker-machine create --driver virtualbox my-default
Container runs the selected OS image.
Quick Start:
- Download and Install Docker toolbox
- Make sure Virtual box is installed, it is included in Docker Toolbox
- For troubleshooting: http://stackoverflow.com/questions/33725779/failed-to-open-create-the-internal-network-vagrant-on-windows10
- Follow below steps to Create a new Docker VM
set PATH=%PATH%;"C:\Program Files\Git\bin"
docker-machine create --driver virtualbox my-default
Setting Proxy on Windows
Method-1
In Docker Toolbox install folder identify start.sh file and include following lines
#export HTTP_PROXY=http://example.com:80
#export HTTPS_PROXY=https://example.com:80
Close and open Docker Quickstart Terminal.
Method-2
- Connect to Docker machine
- Connect
- docker-machine ssh default
- sudo vi /var/lib/boot2docker/profile
- HTTP_PROXY=http://example.com:80
- HTTPS_PROXY=https://example.com:80
- Restart the docker-machine
Starting Kitematic using proxy
for /f %%i in ('docker-machine.exe ip default') do set DOCKER_HOST=%%i
SET NO_PROXY=%DOCKER_HOST%
set DOCKER_HOST=tcp://%DOCKER_HOST%:2376
cd Kitematic
Kitematic.exe
Docker Commit (Save Changes Locally):
sudo docker commit container_id image_name : commit changes made to a local docker container to save any changes made locally.
Saving and Loading images to and from file system
Saving sample:
docker export - saves a container's running or paused instance to a file
docker save - saves a non-running container image to a file
docker save -o <save image tar file> <image name>
Loading sample:
docker load -i <path to image tar file>
Docker Commit (Save Changes Locally):
sudo docker commit container_id image_name : commit changes made to a local docker container to save any changes made locally.