-
CentOS 7 - Docker installOS/Docker 2018. 10. 29. 11:16반응형
1. Docker Install
yum install -y docker
1.1 Install 후 Docker Version
[root@blue ~]# docker version
Client:
Version: 1.13.1
API version: 1.26
Package version:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2. docker service start
systemctl start docker
2.1 정상 실행
[root@blue ~]# service docker start
Redirecting to /bin/systemctl start docker.service
2.2 오류 발생
[root@blue ~]# service docker start
Redirecting to /bin/systemctl start docker.service
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
2.2.1 오류 : could not change group /var/run/docker.sock to docker: group docker not found"
Oct 29 11:01:05 blue systemd[1]: Starting Docker Application Container Engine...
Oct 29 11:01:06 blue dockerd-current[4597]: time="2018-10-29T11:01:06.015187764+09:00" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
Oct 29 11:01:06 blue dockerd-current[4597]: time="2018-10-29T11:01:06.016165310+09:00" level=info msg="libcontainerd: new containerd process, pid: 4612"
Oct 29 11:01:07 blue dockerd-current[4597]: Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disable se...nabled=false)
Oct 29 11:01:07 blue systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Oct 29 11:01:07 blue systemd[1]: Failed to start Docker Application Container Engine.
Oct 29 11:01:07 blue systemd[1]: Unit docker.service entered failed state.
Oct 29 11:01:07 blue systemd[1]: docker.service failed.
2.2.2 groupadd 조치
[root@blue ~]# groupadd docker
[root@blue ~]# usermod -aG docker $(whoami)
2.2.3 오류 : SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disable se...nabled=false)
Oct 29 11:03:19 blue systemd[1]: Starting Docker Application Container Engine...
Oct 29 11:03:19 blue dockerd-current[4738]: time="2018-10-29T11:03:19.099259681+09:00" level=info msg="libcontainerd: new containerd process, pid: 4761"
Oct 29 11:03:20 blue dockerd-current[4738]: Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disable se...nabled=false)
Oct 29 11:03:20 blue systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Oct 29 11:03:20 blue systemd[1]: Failed to start Docker Application Container Engine.
Oct 29 11:03:20 blue systemd[1]: Unit docker.service entered failed state.
Oct 29 11:03:20 blue systemd[1]: docker.service failed.
2.2.4 /etc/ sysconfig/docker 설정 변경
OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false'
--->
OPTIONS='--selinux-enabled=false --log-driver=journald --signature-verification=false'
3. 실행 후 docker version 확인
[root@blue ~]# docker version
Client:
Version: 1.13.1
API version: 1.26
Package version: docker-1.13.1-75.git8633870.el7.centos.x86_64
Go version: go1.9.4
Git commit: 8633870/1.13.1
Built: Fri Sep 28 19:45:08 2018
OS/Arch: linux/amd64
Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Package version: docker-1.13.1-75.git8633870.el7.centos.x86_64
Go version: go1.9.4
Git commit: 8633870/1.13.1
Built: Fri Sep 28 19:45:08 2018
OS/Arch: linux/amd64
Experimental: false
반응형'OS > Docker' 카테고리의 다른 글
CentOS7 - Docker CE 설치 (0) 2018.10.30 Docker - Oracle 12c 설치 (0) 2018.10.29 Docker 사용시 Permision denied 발생 (0) 2018.10.29