Skip to content

Instantly share code, notes, and snippets.

@DenisIzmaylov
Last active March 1, 2022 15:10
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save DenisIzmaylov/88a50819f75f54eb6ad6237b308f2ce0 to your computer and use it in GitHub Desktop.
Save DenisIzmaylov/88a50819f75f54eb6ad6237b308f2ce0 to your computer and use it in GitHub Desktop.
Step By Step Guide To Setup Docker Registry

Step By Step Guide To Setup CI/CD With Docker Registry

Step-by-Step Guide how to install CI/CD with Docker Registry On Ubuntu 14.04 LTS from scratch.

  1. Install Docker using Official Manual or just run:
sudo bash
apt-get update
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main">/etc/apt/sources.list.d/docker.list
apt-get update
apt-get purge lxc-docker
apt-get upgrade
apt-get install -y linux-image-extra-$(uname -r)
apt-get install -y apparmor
apt-get install -y docker-engine
service docker start
groupadd docker
usermod -aG docker wwwprod # or other user with sudo priveleges
  1. Deploying a registry server
docker run -d -p 5000:5000 --restart=always --name registry registry:2

Running your own Registry is a great solution to integrate with and complement your CI/CD system. In a typical workflow, a commit to your source revision control system would trigger a build on your CI system, which would then push a new image to your Registry if the build is successful. A notification from the Registry would then trigger a deployment on a staging environment, or notify other systems that a new image is available. more

See also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment