garethr / garethr-docker

Puppet module for managing docker
Apache License 2.0
397 stars 532 forks source link

Docker : Not installed in centos 7.2 #566

Open moula opened 8 years ago

moula commented 8 years ago

$ sudo yum install docker-engine I have this message : ..... ..... Installation : docker-engine-selinux-1.12.0-1.el7.centos.noarch 10/11 restorecon: lstat(/var/lib/docker) failed: No such file or directory warning: %post(docker-engine-selinux-1.12.0-1.el7.centos.noarch) scriptlet failed, exit status 255 Non-fatal POSTIN scriptlet failure in rpm package docker-engine-selinux-1.12.0-1.el7.centos.noarch Installation : docker-engine-1.12.0-1.el7.centos.x86_64
..... $ sudo systemctl start docker Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

$ systemctl status docker.service ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled) Drop-In: /etc/systemd/system/docker.service.d └─override.conf Active: failed (Result: exit-code) since lun. 2016-08-01 15:38:54 CEST; 6s ago Docs: https://docs.docker.com Process: 2658 ExecStart=/usr/bin/docker daemon --storage-driver=overlay -H fd:// (code=exited, status=1/FAILURE) Main PID: 2658 (code=exited, status=1/FAILURE) [moula@mesos-boot ~]$ systemctl status docker.service -l ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled) Drop-In: /etc/systemd/system/docker.service.d └─override.conf Active: failed (Result: exit-code) since lun. 2016-08-01 15:38:54 CEST; 12s ago Docs: https://docs.docker.com Process: 2658 ExecStart=/usr/bin/docker daemon --storage-driver=overlay -H fd:// (code=exited, status=1/FAILURE) Main PID: 2658 (code=exited, status=1/FAILURE)

$ yum list installed | grep docker docker-engine.x86_64 1.12.0-1.el7.centos @dockerrepo docker-engine-selinux.noarch 1.12.0-1.el7.centos @dockerrepo

$ sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: permissive Mode from config file: permissive Policy MLS status: enabled Policy deny_unknown status: allowed Max kernel policy version: 28

Some help? Thank's.

chriscowley commented 7 years ago

How much RAM/Swap do you have? Rebuilding the SELinux policy is greedy

moula commented 7 years ago

I use 16G bye node, the pb is : the last docker it can be intalled but it not work with dcos-mesos. The solution is to use docker 1.11.12 but not the last. [moula@mesos-dcos ~]$ docker info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 15 Server Version: 1.11.2 Storage Driver: overlay Backing Filesystem: xfs Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: null host bridge Kernel Version: 3.10.0-327.36.1.el7.x86_64 Operating System: CentOS Linux 7 (Core) OSType: linux Architecture: x86_64 CPUs: 6 Total Memory: 15.42 GiB Name: mesos-dcos.tychecloud.lan ID: DGUH:CIEY:QK5E:G3WH:N6Q7:ZP6Z:LPJS:UB7F:6YEE:PC5H:IJBU:CYI4 Docker Root Dir: /var/lib/docker Debug mode (client): false Debug mode (server): false Registry: https://index.docker.io/v1/ WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disabled

and dcos-mesos works :

[moula@mesos-dcos ~]$ dcos --version dcoscli.version=0.4.13 dcos.version=1.9-dev dcos.commit=477a640723100bc2e2ec5e73770d3afc82fba2ea dcos.bootstrap-id=018662a1a10361211764069184a591eeb2ad0529

Merci.

2016-10-03 12:22 GMT+02:00 Chris Cowley notifications@github.com:

How much RAM/Swap do you have? Rebuilding the SELinux policy is greedy

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/garethr/garethr-docker/issues/566#issuecomment-251073419, or mute the thread https://github.com/notifications/unsubscribe-auth/ABuKD-urDPf_nc_oakzA9VY0TvGikQyUks5qwNdtgaJpZM4JZmvD .