官术网_书友最值得收藏!

Using the Docker command line

In order to start using Docker CLI, you need to configure and bring up a Vagrant VM. If you are using macOS, the configuration process using Vagrant will look like this:

$ mkdir vagrant; cd vagrant
$ cat Vagrantfile
Vagrant.configure(2) do |config|
config.vm.box = "centos/7"
config.vm.hostname = 'node1.example.com'
config.vm.network "private_network", type: "dhcp"
config.vm.provision "shell", inline: "groupadd docker; usermod -aG docker vagrant; yum install docker -y; systemctl enable docker; systemctl start docker"
end
$ vagrant up
$ vagrant ssh
主站蜘蛛池模板: 象州县| 临武县| 昆明市| 吴忠市| 广河县| 海口市| 德州市| 兰溪市| 达孜县| 南平市| 阜城县| 屯昌县| 灵丘县| 徐州市| 墨玉县| 梨树县| 惠东县| 白银市| 原阳县| 阿拉尔市| 灵丘县| 柳林县| 原平市| 陆丰市| 临湘市| 龙州县| 大冶市| 阳信县| 双桥区| 亚东县| 垣曲县| 永昌县| 开阳县| 万盛区| 辰溪县| 文成县| 扎鲁特旗| 台北县| 武川县| 望谟县| 利川市|