Sample docker image to test docker deployments
To create the image sandisunandar99/tutum-hello-world-rebuild
, execute the following command on the docker-hello-world folder:
docker build -t sandisunandar99/tutum-hello-world-rebuild .
You can now push your new image to the registry:
sudo docker push sandisunandar99/tutum-hello-world-rebuild
Start your image:
sudo docker run -d -p 80 sandisunandar99/tutum-hello-world-rebuild
It will print the new container ID (like d35bf1374e88
). Get the allocated external port:
sudo docker port d35bf1374e88 80
It will print the allocated port (like 4751). Test your deployment:
curl http://localhost:4751/
Hello world!