美文网首页
deepin利用machine创建

deepin利用machine创建

作者: 望月成三人 | 来源:发表于2019-06-15 08:53 被阅读0次

安装machine

base=https://github.com/docker/machine/releases/download/v0.16.0 &&
  curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine &&
  sudo install /tmp/docker-machine /usr/local/bin/docker-machine

查看安装是否成功

$ docker-machine version
docker-machine version 0.16.0, build 9371605

安装VirtualBox,在商店里安装自带的6.0版本即可

利用docker-machine创建default

docker-machine create default
  • 在安装过程中会下载boot2docker.iso经常超时,因此可以用手动下载,把文件复制到docker cache目录:/home/XXX/.docker/machine/cache
  • 继续执行docker-machine create default
root-PC:/$ docker-machine create default
Running pre-create checks...
Creating machine...
(default) Copying /home/shikun/.docker/machine/cache/boot2docker.iso to /home/shikun/.docker/machine/machines/default/boot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
(default) Found a new host-only adapter: "vboxnet0"
(default) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env default

相关文章

网友评论

      本文标题:deepin利用machine创建

      本文链接:https://www.haomeiwen.com/subject/fkuvfctx.html