Docker Community Forums

Share and learn in the Docker community.

Depending running containers from host libraries

docker

(Alarmikus) #1

Hello,

Maybe someone make clear for me the issue below. Is the containers use the system libraries, packages, etc? How it depend on host system when it started.

I have dockerized Drupal with separate containers on one host Ubuntu 14.04.5 LTS:

  • Nginx 1.12.1
  • Php 5.6.31 + fpm
  • Mysql 10.1.28-MariaDB
    Docker version 17.09.0-ce

All are works fine!

But if I move those project with the same containers to another host using docker-compose. In my case it’s the another version of Ubuntu, and maybe different enviroment, system setting, hypervisor etc.
I have issue when Nginx is frozen after few hours working and do not handle requsts.


(David Maze) #2

Docker images contain their own complete set of runtime libraries. They do not (and can not) depend on the host system’s libraries. The kernel is shared, which is an occasional source of trouble, but host system libraries shouldn’t cause an image to work on one host system Linux distribution but not another.