Docker on Cent OS 6 fails to build container after switching to different container directory

Because we want to share docker images between different nodes in a cluster we edited the docker demon options in file /etc/sysconfig/docker

other_args=" -g /shared_filesystem/docker -p /node_local_filesystem/var/run/docker.pid"

Environment

  • Install Docker on OpenVZ VPS
  • Dockerfile fails when calling rbenv
  • Vagrant docker chef_solo provision fail on CentOS and SuSe linux
  • docker run container happens error when mapped the container's port with machine
  • Centos docker container crashes with 6 Segmentation fault - where's the core dump
  • Must I provide a command when running a docker container?
  • docker version 1.7.1
    Cent OS 6.8
    

    I have a docker file building a container based on debian:stretch. After successfully pulling the image the very first RUN apt-get update call causes an error:

    Temporary failure resolving 'deb.debian.org'
    

    Curiously, if we stitch back to the default docker options in the above /etc/sysconfig/docker the error does not occur.

    Can anyone help, please?

    Many thanks in advance.

  • doing a docker build for the first time and ran into this massive error
  • docker run container happens error when mapped the container's port with machine
  • How to use properly centos dockerfile with ubuntu host?
  • How to forward eclipse in a docker container through a linux proxy?
  • Jenkins: Can't connect to Docker daemon
  • Dockerfile fails when calling rbenv
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.