Sudo tee /etc/docker/daemon.json " imported 启动 docker, 并配置开机启动 sudo systemctl start docker & sudo systemctl enable dockerĦ. # 查看 docker 历史版本 sudo yum list docker-ce -showduplicates | sort -r Docker for mac incompatible cpu detected install#安装 docker # 默认安装最新版本 sudo yum install docker-ce docker-ce-cli containerd.io There are no installed boxes ! Use `vagrant box add ` to add some. Removing box 'centos/7' (v0 ) with provider 'virtualbox'. = > default: Compressing package to: E:/Docker/sub-centos.boxġ.3.9 从 vagrant 中移除. Inet6 fe80::a00:27ff:fe6b:9530/64 scope linkġ.3.8 vagrant box 打包分发 $ vagrant package -output sub-centos.box Inet6 fe80::5054:ff:fe8a:fee6/64 scope linkģ: eth1: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 Valid_lft 85626sec preferred_lft 85626sec ~]# systemctl restart sshdġ: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 Passwd: all authentication tokens updated successfully. Docker for mac incompatible cpu detected password#~]# vi /etc/ssh/sshd_configīAD PASSWORD: The password is shorter than 8 characters Vagrant ssh-config # 查看当前 vagrant ssh配置信息 = > default: Rsyncing folder: /cygdrive/e/Docker/ = > /vagrantġ.3.6 vagrant基本操作 vagrant ssh # 连接当前 vagrant 运行的虚拟机 cpus = 3 end end 1.3.5 启动 centos/7 虚拟机 $ vagrant upīringing machine 'default' up with 'virtualbox' provider. ` ` for more information on using Vagrant.ġ.3.4 配置 Vagrantfile 文件 # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant. The comments in the Vagrantfile as well as documentation on Ready to `vagrant up ` your first virtual environment ! Please read = > box: Successfully added box 'centos/7' (v0 ) for 'virtualbox' ! MINGW64 /e/DockerĬentos/7 (virtualbox, 0 ) 1.3.3 生成 Vagrantfile 文件 $ vagrant init centos/7Ī `Vagrantfile ` has been placed in this directory. = > box: Adding box 'centos/7' (v0 ) for provider:īox: Unpacking necessary files from: file:///E:/Docker/virtualbox.box = > box: Box file was not detected as metadata. box 文件到 vagrant $ vagrant box add centos/7 E:/Docker/virtualbox.box
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |