Notes for setting windows docker environment

  • 2020-06-01 11:26:58
  • OfStack

windows docker environment Settings

1. Download docker-install. exe install VirtualBox, Git, Boot2Docker for Windows

2. Set environment variables and start boot2docker Core Linux. You can start boot2docker Core Linux directly in VirtualBox.

3. Log in host via putty, because it is not easy to copy after directly entering boot2docker Core Linux. The default username and password is docker/tcuser with root permissions.

4. File transfer between windows and docker can be realized by setting the Shared directory of VirtualBox.

5 look at mirror, in the domestic DaoCloud platform: https: / / hub daocloud. io/repos

6. Download the image


docker@default:~$ docker pull daocloud.io/library/ubuntu:trusty-20151028

7. View local images


docker@default:~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
daocloud.io/library/ubuntu trusty-20151028 4b1e42b414f6 13 months ago 188 MB

8. Run the local image


docker@default:~$ docker run -i -t daocloud.io/library/ubuntu:trusty-20151028 /bin/bash

9. Operation in container:


root@199576c575aa:/# whoami
root

10. View container in host:


docker@default:~$ docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
047f762f1b95 daocloud.io/library/ubuntu:trusty-20151028 "/bin/bash" 25 seconds ago Up 25 seconds zealous_wiles

Thank you for reading, I hope to help you, thank you for your support of this site!


Related articles: