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

  • Cannot find a valid baseurl for repo: base/7/x86_64 when build docker image
  • Error while starting tomcat server inside docker centos
  • Docker CentOS image does not auto start httpd
  • docker run container happens error when mapped the container's port with machine
  • docker: Says connection refused when attempting to connect to a published port
  • Error pulling image (latest) from centos, Authentication is required
  • 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.

  • Docker upgrade issue cent os 6.5
  • CentOS 6.7 Connection Issues with Docker behind a firewall
  • How to use properly centos dockerfile with ubuntu host?
  • docker mounting volume with permission denied
  • docker linux container doesn't support driver development?
  • How to tell Docker to use dm/LVM backend for volumes instead of vfs
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.