1.1 KiB
1.1 KiB
Docker Registry Configuration
more details on: https://docs.docker.com/registry/deploying/
Registry Register In Dockerd
if you use https-portal just skip this stage.
before usage, we have to configure insecure registry usage in dockerd (https://docs.docker.com/registry/insecure/)
we have to check default deamon config file path:
dockerd --help | grep config-file
it should be:
--config-file string Daemon configuration file (default "/etc/docker/daemon.json")
open etc/docker/deamon.json file (If the daemon.json file does not exist, create it.) and append these lines:
{
"insecure-registries" : ["http://0.0.0.0:5050"]
}
Registry Usage
its really simply:
docker pull ubuntu
docker tag ubuntu:latest 0.0.0.0:5050/00x097/ubuntu:latest
docker push 0.0.0.0:5050/00x097/ubuntu:latest
0.0.0.0:5050 is custom registry address
00x097 is user name
ubuntu is image / repository name
:latest is version of image (is optional - latest is default)
if you use https-portal, check out this:
docker push docker-registry.tk/00x097/ubuntu:latest