4 ms·
Docker Hub is not "hardcoded as the only registry you can use" its just the default, you can add stuff from any registry.
by justincormack 6y ago
Docker Hub is not "hardcoded as the only registry you can use" its just the default, you can add stuff from any registry.
- m463 6y agoHere are the threads I read: https://stackoverflow.com/questions/33054369/how-to-change-the-default-docker-registry-from-docker-io-to-my-private-registry https://stackoverflow.com/questions/33054369/how-to-change-t... which led to this: https://github.com/moby/issues/7203 https://github.com/moby/issues/7203 and this comment: It turns out this is actually possible, but not using the genuine Docker CE or EE version. You can either use Red Hat's fork of docker with the "--add-registry" flag or you can build docker from source yourself with registry/config.go modified to use your own hard-coded default registry namespace
- justincormack 6y agoThat is about changing the default config, so that if you put a non fully qualified name it might choose a different registry from Docker Hub. You can always pull a fully qualified name on any version of Docker. Red Hat just wanted their install to pull from a different registry if you did "docker run ubuntu" which is kind of confusing for users. You can always just do docker run mydomain.com/ubuntu or whatever on any version.