Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Docker: разговор по душам

Docker: разговор по душам

Internal Altoros Meet up, Aug 4, 2016

Aliaksandr Lomau

August 04, 2016
Tweet

More Decks by Aliaksandr Lomau

Other Decks in Technology

Transcript

  1. * DockerSlim will do the work for you alpine Operating

    System inside Docker Ubuntu* busybox
  2. d docker aliases alias dstart='docker-machine start default’ alias de=‘eval $(docker-machine

    env default)’ alias dl='docker ps -l -q' alias drun='docker run -t -i’ alias dstop='docker stop' alias dip="docker inspect \`dl\` | grep IPAddress | cut -d '\"' -f 4" function dbash
  3. docker-machine create and manage VM with docker Amazon Web Services

    Microsoft Azure Digital Ocean Exoscale Google Compute Engine Generic Microsoft Hyper-V OpenStack Rackspace IBM Softlayer Oracle VirtualBox VMware vCloud Air VMware Fusion VMware vSphere Available Drivers
  4. docker-compose manage multiple docker containers on one host Sample web:

    build: . command: python app.py links: - db ports: - "8000:8000" db: image: postgres
  5. • Указывать версию image или использовать latest? • Какая разница

    между ruby:2.3-onbuild ruby:2.3-alpine ruby: 2.3-slim? • Как понять что мне нужен отдельный контейнер для чего-то (например для sidekiq)? Для чего точно не стоит использовать контейнеры? (persisted data) • Monit/autostart containers • How to automate deploy (with downtime and without)? • What data goes to Docker Hub? Should .dockerignore be equal .gitignore? Alternatives for Docker Hub? Slow connection? • What data will be kept (volumes) after restarting containers? How to share between different VMs (not containers)? • How to protect data from being erased because of misconfiguration? What the best way to backup data?
  6. • I faced a problem. The same official postgres container

    started properly on OS X, but didn’t start properly with same configuration on Ubuntu 19. (failed to pass postgres authentication). I manage to run on Ubuntu 16 previous version of postgres container, but failed to run this version on OS X. What could be the problem? How often such different behaviour occurs? Are there any guarantee that my container tested on OS X with same configuration will work in the same way on other host?