What is the difference between running software in a Docker container Vs Real OS

This question is from a perspective of OS kernel, dependencies and customizations a distro might have, since docker containers shares the host OS kernel, just that perform isolation on it’s resources and allow to use say from an Ubuntu host OS a docker container running CentOS.

What would be the differences or “to-keep-in-mind” details when running software directly in a host OS vs a docker container?

  • Jenkins Slave can't read settings.xml
  • Set up Docker Swarm on an EC2
  • No module named django error when running any manage.py command in docker with docker-compose
  • How does Docker Swarm handle database (PostgreSQL) replication?
  • MySQL docker container crashes
  • Migrating a service from one docker container to another with zero downtime
  • The use case and context is that, say you want to certify your software runs ok on a certain distro, say CentOS, then you fire up a docker container with this as base image but running in an Ubuntu OS as Host. Would it be significant differences between this setup VS running the software/tests directly on a host installed CentOS?.

  • Troubleshoot docker connectivity to external network
  • Docker - Rails app cannot connect to linked Postgres container (doesn't seem to be running)
  • How do I serve static files from either gunicorn or nginx
  • My app can't create log files when it starts up inside Docker
  • How to resolve `Illegal instruction` error while running docker run command?
  • Specify location of volumes in docker
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.