forked from pyouroboros/ouroboros
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Private Registries
gmt2001 edited this page Jul 6, 2020
·
4 revisions
If your running containers' docker images are stored in a secure registry that requires a username and password, simply run ouroboros with 2 arguments or the equivalent environment variables.
docker run -d --name ouroboros \
-v /var/run/docker.sock:/var/run/docker.sock \
gmt2001/ouroboros --repo-user myUser --repo-pass myPassword
docker run -d --name ouroboros \
-e REPO_USER=myUser -e REPO_PASS=myPassword \
-v /var/run/docker.sock:/var/run/docker.sock \
gmt2001/ouroboros
You can alternatively bind mount ~/.docker/config.json
which won't require the above environment variables and support authenticating to more than one docker registry in the event REPO_USER
and REPO_PASS
aren't the same for multiple sources.
docker run -d --name ouroboros \
-v $HOME/.docker/config.json:/root/.docker/config.json \
-v /var/run/docker.sock:/var/run/docker.sock \
gmt2001/ouroboros