-
Notifications
You must be signed in to change notification settings - Fork 157
Private Registries
Caleb Lemoine edited this page Jan 24, 2019
·
3 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 \
pyouroboros/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 \
pyouroboros/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 \
pyouroboros/ouroboros