Docker best practice on base images and host os

I have a questition about the best pratices on using docker in production.

In my company we use SLES12 as host os. Should we use SLES also as base for our docker containers?

  • What are the different ways of implementing Docker FROM?
  • docker swarm for bare metal : ubuntu
  • Downgrading from PHP 7 to PHP 5 on a Docker Server
  • Executable file not found in $PATH
  • Adding GPG key inside docker container causes “no valid OpenPGP data found”
  • Google Container Registry + Google Compute Engine + Docker
  • In my opinion SLES image is too big to follow the ddocker recommendation for small base images.

    My questition is: Has anyone experience in using docker in production with different host and container os? Are there any disadvantages if we use a small debian/ubuntu base image for our containers? (overhead, security, …)

  • Different range ip address whit docker container restored
  • How to configure a Docker container for acquiring DHCP IP/s from dhcp server running on ESX
  • Cannot create docker container in OpenStack
  • npm install error with docker - kurento application
  • not able to perform gcloud init inside dockerfile
  • Why sometimes Java process builder only get 1 line of the process output?
  • One Solution collect form web for “Docker best practice on base images and host os”

    I agree with your assessment that for dockerized applications, smaller base images are preferred. This will save on disk space, reduce network transfer, offer a smaller software surface to worry about security vulnerabilities and general complexity. To my knowledge different host/container distributions is the norm and when they align it’s more of a coincidence than an intentional design. Since the way you interact with the host OS and the container are so very different, even if they were identical, you procedures for keeping things patched would be different. That said, depending on your staff skill set, sticking to the same package manager ecosystem (rpm vs deb) may have some benefit in terms of familiarity of tooling, so finding a small base RPM distro might be a good choice.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.