- 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
推薦閱讀
- Ubuntu Linux操作系統(tǒng)
- INSTANT Galleria Howto
- Learn CUDA Programming
- Raspberry Pi入門指南
- Linux系統(tǒng)安全:縱深防御、安全掃描與入侵檢測(cè)
- Getting Started with UDK
- openEuler操作系統(tǒng)核心技術(shù)與行業(yè)應(yīng)用實(shí)踐
- Learning Joomla! 3 Extension Development(Third Edition)
- 鴻蒙HarmonyOS應(yīng)用開發(fā)從入門到精通
- Gradle Effective Implementations Guide(Second Edition)
- UNIX傳奇:歷史與回憶
- PrimeFaces Beginner's Guide
- SQL Server on Azure Virtual Machines
- 鴻蒙應(yīng)用程序開發(fā)
- Embedded Systems Architecture