Skip to content

20171018_DockerConEu17_1

20171018_DockerConEu17_1

1 - Tips & Tricks

1.1 - Docker Cli

  • Format docker ps output to get more readability
  • docker.json config file can keep format preferences

  • Use new cli

  • docker container,
  • docker image,
  • docker volume,
  • docker network,
  • Prune

  • docker container prune
  • docker image prune

1.2 - Docker Build

  • Litgh Base imnage
  • Order layer smartly

1.3 - Docker Run

  • RO FS
docker run .... \
  --read-only \
  --tmpfs /var/run \
  --tmpfs /var/cache \
  ...
  • Do not run as root
  • gosu

1.4 - Docker in Docker

  • Use volume and unix socket (docker / Display / …)