Since this is intended to be a real-world Docker series, we're focusing on Red Hat Enterprise Linux 7. CentOS7 will be very similar, but make sure you understand the differences between the OSes.
The first thing to do is to make sure you have the extras repository enabled.
yum repolist enabled|grep server-extras
!rhel-7-server-extras-rpms/x86_64 Red Hat Enterprise L 112
If you don't see it listed, run:
subscription-manager repos --enable=rhel-7-server-extras-rpms
Run the first command again, to ensure the repository is now enabled.
Installing Docker:
sudo yum install docker -y
This will install docker and its dependencies, which should include the following:
docker.x86_64 1.7.1-115.el7 @rhel-7-server-extras-rpms
docker-selinux.x86_64 1.7.1-115.el7 @rhel-7-server-extras-rpms
docker-logrotate.x86_64 1.7.1-115.el7 rhel-7-server-extras-rpms
docker-python.x86_64 1.4.0-115.el7 rhel-7-server-extras-rpms
docker-registry.noarch 0.6.8-8.el7 rhel-7-server-extras-rpms
docker-registry.x86_64 0.9.1-7.el7 rhel-7-server-extras-rpms
Next: Configuring Docker Storage
No comments:
Post a Comment