🍩 Taste with Gitlab CI and Docker
Optional: To enable all
yum operations to use a proxy server, specify the proxy server details in
proxy setting must specify the proxy server as a complete URL, including the TCP port number. If your proxy server requires a username and password, specify these by adding
# The proxy server - proxy server:port number
First backup /etc/yum.repos.d/rhel-7-x86_64.repo
mv /etc/yum.repos.d/rhel-7-x86_64.repo /etc/yum.repos.d/rhel-7-x86_64.repo.backup
Download the corresponding version of the repo file and put it in
Run the following command to generate the cache
yum clean all
Only Centos 7 and above is supported (linux kernel version >= 3.10)
Install required packages.
yum-utils provides the
yum-config-manager utility, and
lvm2 are required by the
devicemapper storage driver.
$ sudo yum install -y yum-utils \
Use the following command to set up the stable repository. You always need the stable repository, even if you want to install builds from the edge or test repositories as well.
$ sudo yum-config-manager \
Optional: Enable the edge and test repositories. These repositories are included in the
docker.repo file above but are disabled by default. You can enable them alongside the stable repository.
$ sudo yum-config-manager --enable docker-ce-edge
Install the latest version of Docker CE, or go to the next step to install a specific version:
$ sudo yum install docker-ce
Restart the Docker service:
systemctl restart docker
Then move the entire /var/lib/docker directory to the destination path: