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

  • Dockerfile - Mount host directory - copy a tar fie and run it - Error
  • docker image error downloading package
  • Starting services at container startup
  • Couchbase running in a container not accessible
  • Error while changing hostname inside docker container
  • Dockerfile: Permission denied when trying to install ruby-build
  • 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.

  • CentOS as a Docker host causes different container behavior compared to any other host OS
  • Destroy Docker container from Marathon kills Mesos slave
  • docker-py: client and server don't have same version (client : 1.16, server: 1.15)")
  • Stopping prometheus docker container gracefully
  • I need to remove folder and any descendents
  • can't save docker images
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.