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

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
主站蜘蛛池模板: 乐都县| 碌曲县| 耒阳市| 绵竹市| 托克逊县| 剑川县| 东莞市| 建德市| 石家庄市| 定陶县| 南汇区| 香格里拉县| 和林格尔县| 新闻| 华蓥市| 双城市| 连平县| 葵青区| 包头市| 义马市| 英山县| 蕲春县| 慈溪市| 陆川县| 甘洛县| 翁源县| 忻州市| 达拉特旗| 承德市| 浪卡子县| 凯里市| 西吉县| 柞水县| 永川市| 连云港市| 铜川市| 琼结县| 吉隆县| 鄢陵县| 涿州市| 曲沃县|