# cd /etc/yum.repos.d/
# wget http://yum.oracle.com/public-yum-ol7.repo
# vi public-yum-ol7.repo
yum install docker-engine
# systemctl start docker
# systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
systemctl status docker
docker login container-registry.oracle.com
Username: honglin.su@oracle.com
Password:
Login Succeeded
# docker pull container-registry.oracle.com/os/oraclelinux:6.9
6.9: Pulling from os/oraclelinux
88710002ea6c: Pull complete
Digest: sha256:9ee6b162062040c59f6bdc7fd47a9c55f08695c898d517b99bb6d48a0ed9ccf2
Status: Downloaded newer image for container-registry.oracle.com/os/oraclelinux:6.9
# docker pull container-registry.oracle.com/java/serverjre
Using default tag: latest
latest: Pulling from java/serverjre
78a05301de27: Pull complete
1bd2d038d806: Pull complete
Digest: sha256:cd18dd865cfd0a3b95732eee6e528ff86a96157221a47af48b388b316b1d4b4b
Status: Downloaded newer image for container-registry.oracle.com/java/serverjre:latest
# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
container-registry.oracle.com/os/oraclelinux 6.9 7a4a8c404142 3 weeks ago 171 MB
container-registry.oracle.com/java/serverjre latest 289ea39a2a2c 6 weeks ago 377 MB
[root@instance1-nilsys test]# sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 638 100 638 0 0 3167 0 --:--:-- --:--:-- --:--:-- 3174
100 11.6M 100 11.6M 0 0 2644k 0 0:00:04 0:00:04 --:--:-- 3513k
[root@instance1-nilsys test]# sudo chmod +x /usr/local/bin/docker-compose
[root@instance1-nilsys test]# docker-compose --version
bash: docker-compose: command not found
[root@instance1-nilsys test]# sudo docker-compose --version
sudo: docker-compose: command not found
[root@instance1-nilsys test]# sudo /usr/local/bin/docker-compose --version
docker-compose version 1.26.0, build d4451659
Comments