Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux containers vs virtual machines #3

Open
prayagupa opened this issue Mar 4, 2019 · 1 comment
Open

linux containers vs virtual machines #3

prayagupa opened this issue Mar 4, 2019 · 1 comment

Comments

@prayagupa
Copy link
Owner

prayagupa commented Mar 4, 2019

rhel

Requires: container-selinux >= 2.9

[ec2-user@ip-172-0-0-248 ~]$ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Loaded plugins: amazon-id, rhui-lb
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

[ec2-user@ip-172-0-0-248 ~]$ sudo yum makecache fast
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
docker-ce-stable                                                                                                                | 3.5 kB  00:00:00     
rhui-REGION-client-config-server-7                                                                                              | 2.9 kB  00:00:00     
rhui-REGION-rhel-server-releases                                                                                                | 3.5 kB  00:00:00     
rhui-REGION-rhel-server-rh-common                                                                                               | 3.8 kB  00:00:00     
(1/2): docker-ce-stable/x86_64/primary_db                                                                                       |  25 kB  00:00:00     
(2/2): docker-ce-stable/x86_64/updateinfo                                                                                       |   55 B  00:00:00     
Metadata Cache Created

## I used following instead in 2019 :) not sure why did not work
[ec2-user@ip-30-0-0-23 ~]$ yum check-update
Docker CE Stable - x86_64                                                                                               16 kB/s |  17 kB     00:01    
Red Hat Update Infrastructure 3 Client Configuration Server 8                                                          0.0  B/s |   0  B     00:01    
Error: Failed to synchronize cache for repo 'rhui-client-config-server-8'


[ec2-user@ip-172-0-0-248 ~]$ sudo yum -y install docker-ce
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
Resolving Dependencies
--> Running transaction check
---> Package docker-ce.x86_64 3:18.09.3-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2.9 for package: 3:docker-ce-18.09.3-3.el7.x86_64
--> Processing Dependency: containerd.io >= 1.2.2-3 for package: 3:docker-ce-18.09.3-3.el7.x86_64
--> Processing Dependency: docker-ce-cli for package: 3:docker-ce-18.09.3-3.el7.x86_64
--> Running transaction check
---> Package containerd.io.x86_64 0:1.2.4-3.1.el7 will be installed
---> Package docker-ce.x86_64 3:18.09.3-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2.9 for package: 3:docker-ce-18.09.3-3.el7.x86_64
---> Package docker-ce-cli.x86_64 1:18.09.3-3.el7 will be installed
--> Finished Dependency Resolution
Error: Package: 3:docker-ce-18.09.3-3.el7.x86_64 (docker-ce-stable)
           Requires: container-selinux >= 2.9
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

[ec2-user@ip-172-0-0-248 ~]$ sudo systemctl start docker
Failed to start docker.service: Unit not found.

[ec2-user@ip-172-0-0-248 ~]$ sudo yum info container-selinux
Loaded plugins: amazon-id, product-id, rhui-lb, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Error: No matching Packages to list

fix:

sudo yum -y install http://vault.centos.org/centos/7.3.1611/extras/x86_64/Packages/container-selinux-2.9-4.el7.noarch.rpm
@prayagupa
Copy link
Owner Author

docker run -e SPRING_PROFILES_ACTIVE=dev -it platform-service:v1.0-SNAPSHOT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant