DevOps: Tools. Docker
Docker is a app container platform, which makes use of linux cgroups and network namespaces.
Main benefits:
Cross platform, supports multiple cloud platforms and orchestration systems
Easy to manage
Efficient, delivers application with its environment
Provides high mobility for apps
Provides isolation
Docker operations
Create a container using Dockerfile
docker build -t image-name /path-to/contextRun a container
docker run -it -p 8080 –v volume-name:/path/to/mount image-nameGet list of running containers with ports
docker psKill a container
docker kill container-idRemove image
docker image rm image-nameDocker basic troubleshooting
Examine a list of images
docker image list -aExamine running list
docker ps -aGet container logs
docker logs -f containter-idExecute a command (run a shell) inside
docker exec -it container-id bashCheck networks, proxy settings (if needed)
docker network ls
ENV HTTP_PROXY "http://127.0.0.1:3128"Last updated
Was this helpful?