3 ms·
What's wrong with "FROM scratch"? As in, if you do not want the dependency resolution, file system layout and backported fixes a distribution gives you - what d
by e12e 6y ago
What's wrong with "FROM scratch"? As in, if you do not want the dependency resolution, file system layout and backported fixes a distribution gives you - what do you want "FROM scratch" to do? Docker already provides an init - is there something else missing? Libc perhaps?
- m463 6y agoI'm saying docker hub is hardcoded. Sort of like google devices hardcode 8.8.8.8. I think they should allow people to configure docker to be local, and allow some safer or maybe less promiscuous ways to use it (and it also goes around the ubuntu firewall)
- justincormack 6y agoDocker 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.