- 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
推薦閱讀
- Linux設(shè)備驅(qū)動(dòng)開發(fā)詳解:基于最新的Linux4.0內(nèi)核
- Windows Server 2019 Cookbook
- Citrix XenApp Performance Essentials
- FreeRTOS實(shí)時(shí)內(nèi)核應(yīng)用指南
- Windows Server 2012 Hyper-V Cookbook
- Mastering KVM Virtualization
- Windows 7案例教程
- 從實(shí)踐中學(xué)習(xí)Kali Linux無線網(wǎng)絡(luò)滲透測(cè)試
- AWS SysOps Cookbook
- 從實(shí)踐中學(xué)習(xí)Windows滲透測(cè)試
- Learn SwiftUI
- Linux內(nèi)核API完全參考手冊(cè)(第2版)
- OpenSolaris紅寶書
- 程序員必讀經(jīng)典(算法基礎(chǔ)+計(jì)算機(jī)系統(tǒng))
- Mastering AWS CloudFormation