docker.images/docker.registry
TBS093A e7af7ded4a improve docker.registry configuration 2023-03-09 19:48:50 +01:00
..
README.md improve docker.registry configuration 2023-03-09 19:48:50 +01:00
docker-compose.yml add docker registry 2023-03-09 17:56:32 +01:00

README.md

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 -> sudo mkdir /etc/docker/ && sudo nano /etc/docker/deamon.json) and append these lines:

{
  "insecure-registries" : ["0.0.0.0:5050"]
}

and restart docker:

sudo systemctl restart docker

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