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

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
主站蜘蛛池模板: 全南县| 安平县| 双辽市| 灵武市| 昆明市| 常宁市| 鄂尔多斯市| 寿宁县| 湘乡市| 蓝山县| 萍乡市| 博罗县| 绿春县| 罗田县| 绥中县| 酒泉市| 秦安县| 台州市| 综艺| 会泽县| 宁明县| 吴江市| 张家口市| 武威市| 闻喜县| 农安县| 重庆市| 虹口区| 普洱| 保德县| 郴州市| 阿鲁科尔沁旗| 古田县| 镇巴县| 龙海市| 馆陶县| 岳阳县| 营口市| 大新县| 黔江区| 丁青县|