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

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
主站蜘蛛池模板: 云南省| 彭州市| 天峨县| 九台市| 文登市| 贺州市| 新丰县| 周至县| 商水县| 黄梅县| 许昌市| 嵊泗县| 鲁甸县| 闻喜县| 湘潭市| 灯塔市| 微山县| 南华县| 江阴市| 凤山县| 榆林市| 郯城县| 乐安县| 武汉市| 寿阳县| 庐江县| 朔州市| 察雅县| 蕲春县| 朝阳市| 华亭县| 固始县| 开鲁县| 岳普湖县| 泸州市| 辽宁省| 汶上县| 毕节市| 武乡县| 留坝县| 石阡县|