How to disallow push to docker repository

I am currently setting up a local cluster at my work using docker. Basically everything works fine, the only thing I worry about is, that other devs that use my setup may eventually push the local builds to a remote repository.

Since this would be a catastrophe because we are not allowed to upload the companies artefacts anywhere else than internal servers – is there a way to prevent other users from pushign to a remote docker repo?

  • How can I terminate a Docker instance from within itself?
  • Docker mount works only on localhost
  • Reindex from host with sphinx docker container
  • How to send a password to `sudo` from a Dockerfile
  • Why does creating a file inside a docker-machine VM result in permission denied?
  • My app can't create log files when it starts up inside Docker
  • Open port between docker containers
  • Elasticsearch/Kibana-docker with default index and data
  • Resource Usage by stopped Docker containers
  • How to run Spark on Docker?
  • How to start docker-machine on OSX?
  • Docker (under boot2docker) does not look for/find local images when building
  • One Solution collect form web for “How to disallow push to docker repository”

    docker repo == docker registry?

    Not sure I get the full picture about your desired workflow, but here are two options:

    • Use registry authentication and make sure that only authorised people push
    • Configure networking / dns / hosts to resolve to the correct registry – e.g. resolves to the local registry for devs and to the remote registry for others.
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.