u6f6o
u6f6o

Reputation: 2190

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?

Upvotes: 0

Views: 1165

Answers (1)

Jan Groth
Jan Groth

Reputation: 14656

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. docker-registry.mycompany.com resolves to the local registry for devs and to the remote registry for others.

Upvotes: 1

Related Questions