- First go to this link https://github.com/docker-archive/toolbox/releases and download the most recent .exe file of Docker Toolbox. Note: Before installation make sure that Oracle VM Virtual Box is already removed otherwise you will face errors upon initialization of Docker Quick Start Terminal.
- Use
docker info
to get the installation information - Whenever you pull an image the size of the disk.vmdk increases. You can check the disk in the following folder C:\Users(username on pc).docker\machine\machines\default
#Docker Useful Commands
docker version
docker-machine ls
- As we are running docker on VM not on windows directly to fix issues related error regarding docker version we can use the following commands:
available command:
docker-machine help
docker-machine env default
(it will list out all the commands for connecting to the default docker machine)
$ docker-machine start default
$ docker-machine env default
$ eval $(docker-machine env default)
docker build -t tagname .
short for --tag
FROM <Repository>[<:tag>]
FROM <Repository>[<@digest>]
- purpose of FROM instruction is to specify base image
- FROM instruction must be the first in a Dockerfile
- The argument must define a repository but a tag is optional
- Argument might refer to a digest, to specify the image
docker run --name (name of the container) -it (name of the image)
exmaple : docker run --name test -it debian
--name: Assign a name to the container
-it: The -it instructs Docker to allocate a pseudo-TTY connected to the container’s stdin; creating an interactive bash shell in the container.
docker ps
usage: All the containers running on your machine
docker search image-name
docker pull image-name:tag-name
docker stop container-name
`docker rm container-name'
nvdia-sm
can show memory usage, GPU utilization and temperature of GPU
- :i : insert
- :x : save file & exit
- First you need to click on "create new console" then choose "set up tasks"
- Under predefined tasks click on the +
- Right click on the Docker Terminal shortcut and select the properties
- Copy the the address from start in to the task parameter
- Copy the target address to the command section
- Press save Settings
- Note: Run the cmder as administrator then from the "create new console" select the defined task
Nooshin Noshiri