set up docker and run httpd in 2 vagrant machines. 5

1099 단어 Docker

set up a new vagrant and pull image


in Mac PC
bash
mkdir docker_2
bash
cd docker_2
Change IP address
Vagrantfile
config.vm.network "private_network", ip: "192.168.55.45"
bash
vagrant up
Login to virtual machine
bash
vagrant ssh
Then Setup docker again in this machine.
IP address is 192.168.55.45
bash
sudo docker login
bash
sudo docker pull jojiurano/bibo
check images
bash
sudo docker images
You can run httpd in this machine also.
sudo docker run -p 8080:80 -d jojiurano/bibo
You can access here.
http://192.168.55.45:8080/

좋은 웹페이지 즐겨찾기