Docker hints


docker daemon: managing containers docker CLI: passing commands to Docker daemon docker image index: docker images repository

Docker elements

docker containers: directories with application files docker images: Docker containers snapshots Dockerfiles: makefile for Docker images


  • “-dns -dns”: specify the DNS servers used by a container.
  • “-icc=false”: make containers isolated from each other.
  • docker inspect container
  • docker logs container
  • docker ps -a #show all containers in all states
  • nsenter –target $CONTAINER_PID –mount –uts –ipc –net –pid # another way to entry into container
  • docker rm $(docker ps -a -q) #kill all inactive containers
  • docker rmi $(docker images -q -a) #kill all images


  • /sys/fs/cgroup


tail -f /var/log/upstart/docker.log tail -f /var/log/upstart/fig.log

  • sudo docker info grep Driver: #detect drivers
  • docker run -i -t 066b799ea548 /bin/bash #run last successful directly
  • –no-cache disable caching