Reputation: 31
I am working in a multinational company and i am looking for a way/solution so that i can use our own cloud/repositories to host docker images.We can not host docker images of our code build on docker public or private repositories,i understand private repositories are only accessible by me but still my org dont want to host code outside org. So is there any way or we can set up repositories in our own servers which are not accessible outside world ?
Upvotes: 1
Views: 88
Reputation: 263866
The docker registry has an open API that has been implemented by lots of vendors. Docker includes a registry image that is open source and you can run yourself. Here's an example command:
docker run -d --restart=unless-stopped --name registry \
-e "REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/var/lib/registry" \
-v "registry-data:/var/lib/registry" \
-p "5000:5000" \
registry:2
Note that this is just the bare server, and doesn't do any authentication, authorization, or TLS encryption without more configuration.
Upvotes: 1
Reputation: 4544
you can install Harbor (a private docker registry) in your company owned servers. It's open source and CNCF project.
Upvotes: 1