docker-compose -f /vagrant/docker-compose.yaml up -d
docker ps
docker exec -ti nginx bash Inside container do ps aux
Change from image to build of nginx container
docker tag vagrant_nginx carloscarvalho/nginx:latest
docker tag vagrant_nginx carloscarvalho/nginx:v2
docker tag nginx:1.9.7 carloscarvalho/nginx:v1
docker tag vagrant_node1 carloscarvalho/node:latest
docker tag vagrant_node1 carloscarvalho/node:v1
docker tag vagrant_redis carloscarvalho/redis:latest
docker tag vagrant_redis carloscarvalho/redis:v1
docker-compose -f /vagrant/compose.yaml up -d
Change versions on compose.yaml to see differencess between images (Nginx default page and Nginx upstreaming to choose nodejs node)
docker login -u "carloscarvalho"
docker push carloscarvalho/nginx:v1
docker push carloscarvalho/nginx:v2
docker push carloscarvalho/nginx:latest
docker push carloscarvalho/node:v1
docker push carloscarvalho/node:latest
docker push carloscarvalho/redis:v1
docker push carloscarvalho/redis:latest
Do docker-compose -f /vagrant/compose.yaml stop & docker-compose -f /vagrant/compose.yaml rm
Do docker rmi carloscarvalho/node:v1 & docker rmi carloscarvalho/node