这里说明一下这种安装方式适合win7 win8的系统环境下安装的,当然win10也可以,但是win10有更好的方式
即安装Docker Toolbox,同时还附加安装
-
- Docker Client for Windows
- Docker Toolbox management tool and ISO
- Oracle VM VirtualBox
- Git MSYS-git UNIX tools
- 不用担心,下载的Docker Toolbox已经完全包含了这几个软件,直接安装就可以了
我们先下载 https://get.daocloud.io/toolbox/
安装就直接双击
安装完成后桌面多了这三个图标
点击Docker Quickstart Terminal这个图标,就会自动打开终端了(等等吧,需要点时间)
可以看到配置完成了
输入docker info命令查看docker的版本信息
Brave@DESKTOP-76BE8V4 MINGW64 /e/software/Docker Toolbox/Docker Toolbox$ docker infoContainers: 0 Running: 0 Paused: 0 Stopped: 0Images: 0Server Version: 18.06.1-ceStorage Driver: aufs Root Dir: /mnt/sda1/var/lib/docker/aufs Backing Filesystem: extfs Dirs: 0 Dirperm1 Supported: trueLogging Driver: json-fileCgroup Driver: cgroupfsPlugins: Volume: local Network: bridge host macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslogSwarm: inactiveRuntimes: runcDefault Runtime: runcInit Binary: docker-initcontainerd version: 468a545b9edcd5932818eb9de8e72413e616e86erunc version: 69663f0bd4b60df09991c08812a60108003fa340init version: fec3683Security Options: seccomp Profile: defaultKernel Version: 4.9.93-boot2dockerOperating System: Boot2Docker 18.06.1-ce (TCL 8.2.1); HEAD : c7e5c3e - Wed Aug 22 16:27:42 UTC 2018OSType: linuxArchitecture: x86_64CPUs: 1Total Memory: 995.6MiBName: defaultID: QDIM:PBYY:5XPN:LXMD:2CZM:PVFW:OJ4P:6RIN:T6YT:75RW:CP3F:FS5QDocker Root Dir: /mnt/sda1/var/lib/dockerDebug Mode (client): falseDebug Mode (server): falseRegistry: https://index.docker.io/v1/Labels: provider=virtualboxExperimental: falseInsecure Registries: 127.0.0.0/8Live Restore Enabled: falseBrave@DESKTOP-76BE8V4 MINGW64 /e/software/Docker Toolbox/Docker Toolbox$
下面我们通过远程连接工具连接docker
默认的用户名和密码是: docker/tcuser
docker@default:~$ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEdocker@default:~$ docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESdocker@default:~$ docker versionClient: Version: 18.06.1-ce API version: 1.38 Go version: go1.10.3 Git commit: e68fc7a Built: Tue Aug 21 17:20:43 2018 OS/Arch: linux/amd64 Experimental: falseServer: Engine: Version: 18.06.1-ce API version: 1.38 (minimum version 1.12) Go version: go1.10.3 Git commit: e68fc7a Built: Tue Aug 21 17:28:38 2018 OS/Arch: linux/amd64 Experimental: falsedocker@default:~$