Docker
Docker
[email protected]'s password:
Last login: Mon Sep 7 15:43:51 2020 from 10.150.42.1
[root@localhost ~]# sudo yum install -y yum-utils
Loaded plugins: product-id, search-disabled-repos, subscription-manager
rhel-7-server-rpms
| 3.5 kB 00:00:00
(1/3): rhel-7-server-rpms/7Server/x86_64/group
| 631 kB 00:00:01
(2/3): rhel-7-server-rpms/7Server/x86_64/updateinfo
| 3.7 MB 00:00:01
(3/3): rhel-7-server-rpms/7Server/x86_64/primary_db
| 73 MB 00:00:51
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-54.el7_8 will be installed
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-
54.el7_8.noarch
--> Running transaction check
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed
--> Processing Dependency: python-chardet for package: python-kitchen-1.1.1-
5.el7.noarch
--> Running transaction check
---> Package python-chardet.noarch 0:2.2.1-3.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================
===================================================================================
=======================================================================
Package Arch
Version Repository
Size
===================================================================================
===================================================================================
=======================================================================
Installing:
yum-utils noarch
1.1.31-54.el7_8 rhel-7-server-rpms
122 k
Installing for dependencies:
python-chardet noarch
2.2.1-3.el7 rhel-7-server-rpms
227 k
python-kitchen noarch
1.1.1-5.el7 rhel-7-server-rpms
266 k
Transaction Summary
===================================================================================
===================================================================================
=======================================================================
Install 1 Package (+2 Dependent packages)
Installed:
yum-utils.noarch 0:1.1.31-54.el7_8
Dependency Installed:
python-chardet.noarch 0:2.2.1-3.el7
python-kitchen.noarch 0:1.1.1-5.el7
Complete!
[root@localhost ~]# sudo yum-config-manager --add-repo
https://download.docker.com/linux/centos/docker-ce.repo
Loaded plugins: product-id, subscription-manager
adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
grabbing file https://download.docker.com/linux/centos/docker-ce.repo to
/etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo
[root@localhost ~]# sudo yum-config-manager --add-repo
https://download.docker.com/linux/centos/docker-ce.repo
Loaded plugins: product-id, subscription-manager
adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
grabbing file https://download.docker.com/linux/centos/docker-ce.repo to
/etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo
[root@localhost ~]#
[root@localhost ~]# [root@localhost ~]#
-bash: [root@localhost: command not found
[root@localhost ~]# sudo yum -y install docker-ce
Loaded plugins: product-id, search-disabled-repos, subscription-manager
docker-ce-stable
| 3.5 kB 00:00:00
(1/2): docker-ce-stable/x86_64/updateinfo
| 55 B 00:00:00
(2/2): docker-ce-stable/x86_64/primary_db
| 45 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package docker-ce.x86_64 3:19.03.12-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-
19.03.12-3.el7.x86_64
--> Processing Dependency: containerd.io >= 1.2.2-3 for package: 3:docker-ce-
19.03.12-3.el7.x86_64
--> Processing Dependency: docker-ce-cli for package: 3:docker-ce-19.03.12-
3.el7.x86_64
--> Processing Dependency: libcgroup for package: 3:docker-ce-19.03.12-3.el7.x86_64
--> Running transaction check
---> Package containerd.io.x86_64 0:1.2.13-3.2.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-
1.2.13-3.2.el7.x86_64
---> Package docker-ce.x86_64 3:19.03.12-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-
19.03.12-3.el7.x86_64
---> Package docker-ce-cli.x86_64 1:19.03.12-3.el7 will be installed
---> Package libcgroup.x86_64 0:0.41-21.el7 will be installed
--> Finished Dependency Resolution
Error: Package: containerd.io-1.2.13-3.2.el7.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2:2.74
Error: Package: 3:docker-ce-19.03.12-3.el7.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2:2.74
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in
/etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************
Dependencies Resolved
===================================================================================
===================================================================================
=======================================================================
Package Arch
Version Repository
Size
===================================================================================
===================================================================================
=======================================================================
Installing:
docker-ce x86_64
3:19.03.12-3.el7 docker-ce-stable
24 M
Installing for dependencies:
audit-libs-python x86_64
2.8.5-4.el7 rhel-7-server-rpms
77 k
checkpolicy x86_64
2.5-8.el7 rhel-7-server-rpms
295 k
container-selinux noarch
2:2.119.2-1.911c772.el7_8 rhel-7-server-
extras-rpms 40 k
containerd.io x86_64
1.2.13-3.2.el7 docker-ce-stable
25 M
docker-ce-cli x86_64
1:19.03.12-3.el7 docker-ce-stable
38 M
libcgroup x86_64
0.41-21.el7 rhel-7-server-rpms
66 k
libsemanage-python x86_64
2.5-14.el7 rhel-7-server-rpms
113 k
policycoreutils-python x86_64
2.5-34.el7 rhel-7-server-rpms
457 k
python-IPy noarch
0.75-6.el7 rhel-7-server-rpms
32 k
setools-libs x86_64
3.3.8-4.el7 rhel-7-server-rpms
620 k
Updating for dependencies:
audit x86_64
2.8.5-4.el7 rhel-7-server-rpms
255 k
audit-libs x86_64
2.8.5-4.el7 rhel-7-server-rpms
102 k
policycoreutils x86_64
2.5-34.el7 rhel-7-server-rpms
917 k
Transaction Summary
===================================================================================
===================================================================================
=======================================================================
Install 1 Package (+10 Dependent packages)
Upgrade ( 3 Dependent packages)
Installed:
docker-ce.x86_64 3:19.03.12-3.el7
Dependency Installed:
audit-libs-python.x86_64 0:2.8.5-4.el7 checkpolicy.x86_64 0:2.5-8.el7
container-selinux.noarch 2:2.119.2-1.911c772.el7_8 containerd.io.x86_64
0:1.2.13-3.2.el7 docker-ce-cli.x86_64 1:19.03.12-3.el7
libcgroup.x86_64 0:0.41-21.el7 libsemanage-python.x86_64 0:2.5-
14.el7 policycoreutils-python.x86_64 0:2.5-34.el7 python-
IPy.noarch 0:0.75-6.el7 setools-libs.x86_64 0:3.3.8-4.el7
Dependency Updated:
audit.x86_64 0:2.8.5-4.el7 audit-
libs.x86_64 0:2.8.5-4.el7
policycoreutils.x86_64 0:2.5-34.el7
Complete!
[root@localhost ~]# docker pull store/ibmcorp/guardium_external_s-tap:v11.2.0.137
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker
daemon running?
[root@localhost ~]# systemctl start docker
[root@localhost ~]# docker pull store/ibmcorp/guardium_external_s-tap:v11.2.0.137
Error response from daemon: pull access denied for
store/ibmcorp/guardium_external_s-tap, repository does not exist or may require
'docker login': denied: requested access to the resource is denied
[root@localhost ~]# docker login -u matrixtech
Password:
Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized:
incorrect username or password
[root@localhost ~]# docker login -u mbetancur
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
[root@localhost ~]# docker pull store/ibmcorp/guardium_external_s-tap:v11.2.0.137
v11.2.0.137: Pulling from store/ibmcorp/guardium_external_s-tap
23302e52b49d: Pull complete
cf5693de4d3c: Pull complete
1a861b7c86b2: Pull complete
706b3d390eef: Pull complete
e837fd69a38f: Pull complete
0c33c97edba9: Pull complete
Digest: sha256:e7830499e41927483d7ded188517d3852d701df32f7b07dc92acbaa61d8c0370
Status: Downloaded newer image for store/ibmcorp/guardium_external_s-
tap:v11.2.0.137
docker.io/store/ibmcorp/guardium_external_s-tap:v11.2.0.137
[root@localhost ~]#