- Learn OpenShift
- Denis Zuev Artemii Kropachev Aleksey Usov
- 83字
- 2021-08-13 16:03:44
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
推薦閱讀
- Mastering vRealize Operations Manager(Second Edition)
- Linux操作系統(tǒng)基礎(chǔ)
- Linux系統(tǒng)架構(gòu)與運(yùn)維實(shí)戰(zhàn)
- Learning Windows Server Containers
- Google系統(tǒng)架構(gòu)解密:構(gòu)建安全可靠的系統(tǒng)
- Linux內(nèi)核完全注釋(20周年版·第2版)
- Linux網(wǎng)絡(luò)操作系統(tǒng)與實(shí)訓(xùn)(第三版)
- Persistence in PHP with the Doctrine ORM
- SharePoint 2013 WCM Advanced Cookbook
- 混沌工程:復(fù)雜系統(tǒng)韌性實(shí)現(xiàn)之道
- 移動(dòng)應(yīng)用UI設(shè)計(jì)模式(第2版)
- 8051軟核處理器設(shè)計(jì)實(shí)戰(zhàn)
- Windows 7應(yīng)用入門與技巧
- Fedora 12 Linux應(yīng)用基礎(chǔ)
- Kali Linux高級(jí)滲透測(cè)試