docker

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

More than 1 year has passed since last update.

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/

スクリーンショット 2017-08-03 19.21.30.png