Skip to content
doronshai edited this page Jul 21, 2015 · 4 revisions

Links for Tutorials

How to install - https://docs.docker.com/installation/centos/
Getting started - https://docs.docker.com/userguide/
Continuous Integration Using Docker, Maven and Jenkins - https://learn.tutum.co/article/2/continuous-integration-using-docker-maven-and-jenkins

Most used commands

docker ps - Lists containers.
docker logs - Shows us the standard output of a container.
docker stop - Stops running containers.
docker run -d -P training/webapp python app.py - Running a web application in Docker
docker ps -l - Viewing our web application container
docker port nostalgic_morse 5000 - A network port shortcut
docker logs -f nostalgic_morse - Viewing the web application’s logs
docker top nostalgic_morse - Looking at our web application container’s processes
docker inspect nostalgic_morse - Inspecting our web application container
docker inspect -f '{{ .NetworkSettings.IPAddress }}' nostalgic_morse - Inspecting by requesting a specific element
docker rm nostalgic_morse - Removing our web application container