IT 한길

os : centos8

 

아래와 같은 오류발생함.

[root@localhost ~]# docker container start jenkins
Error response from daemon: driver failed programming external connectivity on endpoint jenkins (ac7170f1dcb866487f84061e32d5d9705c1692d66996ce533b7e2f64c60aca9b):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 50000 -j DNAT --to-destination 172.17.0.2:50000 ! -i docker0: iptables: No chain/target/match by that name.
 (exit status 1))
Error: failed to start containers: jenkins

아래와 같이 해결함.

[root@localhost /]# iptables -t filter -F
[root@localhost /]# iptables -t filter -X
[root@localhost /]# systemctl restart docker

 

'IT > Docker' 카테고리의 다른 글

[Docker] mysql 설치하기  (0) 2020.08.21
[Docker] 도커 컨테이너에서 VI 사용하기  (0) 2020.06.11
[Docker]도커 접속 방법 (docker exec)  (0) 2020.06.11
[Docker] 도커 설치 (CentOS 8)  (0) 2020.06.09

os : centos8
https://hub.docker.com/_/jenkins/

 

jenkins - Docker Hub

DEPRECATION NOTICE This image has been deprecated in favor of the jenkins/jenkins:lts image provided and maintained by Jenkins Community as part of project's release process. The images found here will receive no further updates after LTS 2.60.x. Please ad

hub.docker.com

1. Jenkins 이미지 다운로드

- docker pull jenkins/jenkins

[root@localhost ~]# docker pull jenkins/jenkins 
Using default tag: latest 
latest: Pulling from jenkins/jenkins 
3192219afd04: Pull complete 
17c160265e75: Pull complete 
cc4fe40d0e61: Pull complete 
9d647f502a07: Pull complete 
d108b8c498aa: Pull complete 
1bfe918b8aa5: Pull complete 
dafa1a7c0751: Pull complete 
b2d02276dac1: Pull complete 
2c0d0c8c3efd: Pull complete 
96361a673333: Pull complete 
81c6f1bc405d: Pull complete 
0a46f33b1b25: Pull complete 
30eaf72640cc: Pull complete 
f4b226e89c35: Pull complete 
bb775209c68a: Pull complete 
27df1ec63d52: Pull complete 
229f7473962e: Pull complete 
afd6ff4cc063: Pull complete 
c69f789a4a12: Pull complete 
Digest: sha256:3ee4bd15d77fdc7a784efd468f501a03b9baafad7ae3e3f29381af4653bde870 
Status: Downloaded newer image for jenkins/jenkins:latest 

2. Jenkins 이미지 조회

- docker images

[root@localhost ~]# docker images 
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE 
jenkins/jenkins     latest              6328c71fe374        33 hours ago        659MB 
centos              latest              470671670cac        4 months ago        237MB 
hello-world         latest              bf756fb1ae65        5 months ago        13.3kB

3. Jenkins 컨테이너 실행

- ex : docker run -p 8080:8080 -p 50000:50000 -v /your/home:/var/jenkins_home jenkins

[root@localhost ~]# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
[root@localhost ~]# docker run -d -p 9000:8080 -p 50000:50000 -v /jenkins:/var/jenkins_home --name jenkins -u root jenkins/jenkins
35daffa4efd0a03a2c85090453f8302dc0b4f4df478df9a7df6e8f62d3e0a92d
[root@localhost ~]# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                                              NAMES
35daffa4efd0        jenkins/jenkins     "/sbin/tini -- /usr/…"   18 seconds ago      Up 16 seconds       0.0.0.0:50000->50000/tcp, 0.0.0.0:9000->8080/tcp   jenkins
[root@localhost ~]#

 

4. Jenkins 로그인

http://192.168.31.100:9000/

 

- 로그인 패스워드 조회

[root@localhost /]# docker exec -it jenkins cat /var/jenkins_home/secrets/initialAdminPassword
b534bce2d0eb4ade8f4563c96dae446e

- 로그인

 

참고 : https://docs.docker.com/install/linux/docker-ce/centos/

 

설치방법은 위 사이트에 설명이 잘 나와 있습니다. 

 

설치방밥은 여러방법이 있는거 같습니다.

(Install using the repository, Install from a package, Install using the convenience script)

 

전 첫번째(Install using the repository) 방법을 이용해 보겠습니다.

CentOS 8에서 설치 진행 공유합니다.

 

 

1. Uninstall old versions

[root@localhost ~]# sudo yum remove docker \
                  docker-common \
                  docker-latest \
>                   docker-client \
>                   docker-client-latest \
>                   docker-common \
>                   docker-latest \
>                   docker-latest-logrotate \
>                   docker-logrotate \
>                   docker-engine
Modular dependency problems:

 문제 1: conflicting requests
  - nothing provides module(perl:5.26) needed by module perl-DBD-SQLite:1.58:8010020191114033549:073fa5fe-0.x86_64
 문제 2: conflicting requests
  - nothing provides module(perl:5.26) needed by module perl-DBI:1.641:8010020191113222731:16b3ab4d-0.x86_64
인수와 일치하는 항목 없음 : docker
인수와 일치하는 항목 없음 : docker-client
인수와 일치하는 항목 없음 : docker-client-latest
인수와 일치하는 항목 없음 : docker-common
인수와 일치하는 항목 없음 : docker-latest
인수와 일치하는 항목 없음 : docker-latest-logrotate
인수와 일치하는 항목 없음 : docker-logrotate
인수와 일치하는 항목 없음 : docker-engine
제거 할 수있는 패키지가 없습니다.
Dependencies resolved.
할 것이 없음.
완료되었습니다!

 

2. Install using the repository

 가. Install the yum-utils package (which provides the yum-config-manager utility) 

[root@localhost ~]# sudo yum install -y yum-utils
CentOS-8 - AppStream
CentOS-8 - Base                                                           4% [==-                                     CentOS-8 - Base                                                           5% [====                                    CentOS-8 - Base                                                           7% [=====                                   CentOS-8 - Base                                                           8% [======                                  CentOS-8 - Base                                                          10% [=======-                                CentOS-8 - Base                                                          12% [========-                               CentOS-8 - Base                                                          13% [=========-                              CentOS-8 - Base                                                          15% [===========                             CentOS-8 - Base                                                                      110 kB/s | 2.2 MB     00:20
CentOS-8 - Extras                                                                    8.5 kB/s | 6.7 kB     00:00
Dependencies resolved.
=====================================================================================================================
 Package                     Architecture             Version                         Repository                Size
=====================================================================================================================
Installing:
 yum-utils                   noarch                   4.0.8-3.el8                     BaseOS                    64 k

Transaction Summary
=====================================================================================================================
설치  1 Package

Total download size: 64 k
Installed size: 19 k
패키지 다운로드중:
yum-utils-4.0.8-3.el8.noarch.rpm                                                     109 kB/s |  64 kB     00:00
---------------------------------------------------------------------------------------------------------------------
합계                                                                                  63 kB/s |  64 kB     00:01
경고: /var/cache/dnf/BaseOS-929b586ef1f72f69/packages/yum-utils-4.0.8-3.el8.noarch.rpm: Header V3 RSA/SHA256 Signatur e, key ID 8483c65d: NOKEY
CentOS-8 - Base                                                                      1.6 MB/s | 1.6 kB     00:00
GPG키 0x8483C65D를 불러옵니다:
 사용자     : "CentOS (CentOS Official Signing Key) <security@centos.org>"
  GPG 지문: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
 출처        : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
성공적으로 가져온 키
트랜잭션 점검 실행 중
트랜잭션 검사가 성공했습니다.
트랜잭션 테스트 실행 중
트랜잭션 테스트가 완료되었습니다.
거래 실행 중
  준비 중입니다  :                                                                                               1/1
  Installing     : yum-utils-4.0.8-3.el8.noarch                                                                  1/1
  스크립틀릿 실행: yum-utils-4.0.8-3.el8.noarch                                                                  1/1
  확인 중        : yum-utils-4.0.8-3.el8.noarch                                                                  1/1

설치됨:
  yum-utils-4.0.8-3.el8.noarch

완료되었습니다!

 

나. set up the stable repository

[root@localhost ~]# sudo yum-config-manager \
>     --add-repo \
>     https://download.docker.com/linux/centos/docker-ce.repo
다음 위치에서 레포 추가 : https://download.docker.com/linux/centos/docker-ce.repo

 

3. INSTALL DOCKER ENGINE

 가. 최신버전 설치  (오류 발생함)

[root@localhost ~]# sudo yum install docker-ce docker-ce-cli containerd.io
마지막 메타 데이터 만료 확인 : 0:02:28 전에 2020년 06월 08일 (월) 오후 09시 19분 42초.
오류:
 문제: package docker-ce-3:19.03.11-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package containerd.io-1.2.10-3.2.el7.x86_64 is excluded
  - package containerd.io-1.2.13-3.1.el7.x86_64 is excluded
  - package containerd.io-1.2.13-3.2.el7.x86_64 is excluded
  - package containerd.io-1.2.2-3.3.el7.x86_64 is excluded
  - package containerd.io-1.2.2-3.el7.x86_64 is excluded
  - package containerd.io-1.2.4-3.1.el7.x86_64 is excluded
  - package containerd.io-1.2.5-3.1.el7.x86_64 is excluded
  - package containerd.io-1.2.6-3.3.el7.x86_64 is excluded
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

 

 나. 특정 버전으로 설치

    1) 사용가능 버전 조회

[root@localhost ~]# yum list docker-ce --showduplicates | sort -r
사용 가능한 패키지
마지막 메타 데이터 만료 확인 : 0:06:20 전에 2020년 06월 08일 (월) 오후 09시 19분 42초.
docker-ce.x86_64            3:19.03.9-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.8-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.7-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.6-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.5-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.4-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.3-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.2-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.11-3.el7                    docker-ce-stable
docker-ce.x86_64            3:19.03.10-3.el7                    docker-ce-stable
docker-ce.x86_64            3:19.03.1-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.0-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.9-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.8-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.7-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.6-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.5-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.4-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.3-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.2-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.1-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.0-3.el7                     docker-ce-stable
docker-ce.x86_64            18.06.3.ce-3.el7                    docker-ce-stable
docker-ce.x86_64            18.06.2.ce-3.el7                    docker-ce-stable
docker-ce.x86_64            18.06.1.ce-3.el7                    docker-ce-stable
docker-ce.x86_64            18.06.0.ce-3.el7                    docker-ce-stable
docker-ce.x86_64            18.03.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            18.03.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.12.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.12.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.09.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.09.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.06.2.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.06.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.06.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.03.3.ce-1.el7                    docker-ce-stable
docker-ce.x86_64            17.03.2.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.03.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.03.0.ce-1.el7.centos             docker-ce-stable

     2) 특정 버전으로 설치 (docker-ce-18.09.1)

          가) 오류발생했음 (***  패키지의 파일과 충돌합니다 등)

[root@localhost ~]#  sudo yum install docker-ce-18.09.1 docker-ce-cli-18.09.1 containerd.io
마지막 메타 데이터 만료 확인 : 0:14:26 전에 2020년 06월 08일 (월) 오후 09시 19분 42초.
Dependencies resolved.
======================================================================================================================================
 Package                         Architecture             Version                            Repository                          Size
======================================================================================================================================
Installing:
 containerd.io                   x86_64                   1.2.0-3.el7                        docker-ce-stable                    22 M
 docker-ce                       x86_64                   3:18.09.1-3.el7                    docker-ce-stable                    19 M
 docker-ce-cli                   x86_64                   1:18.09.1-3.el7                    docker-ce-stable                    14 M
Installing dependencies:
 libcgroup                       x86_64                   0.41-19.el8                        BaseOS                              70 k

Transaction Summary
======================================================================================================================================
설치  4 Packages

Total download size: 55 M
Installed size: 235 M
Is this ok [y/N]: y
패키지 다운로드중:
(1/4): libcgroup-0.41-19.el8.x86_64.rpm                                                               9.6 kB/s |  70 kB     00:07
(2/4): docker-ce-cli-18.09.1-3.el7.x86_64.rpm                                                          37 kB/s |  14 MB     06:32
(3/4): docker-ce-18.09.1-3.el7.x86_64.rpm                                                              39 kB/s |  19 MB     08:15
(4/4): containerd.io-1.2.0-3.el7.x86_64.rpm                                                            43 kB/s |  22 MB     08:41
--------------------------------------------------------------------------------------------------------------------------------------
합계                                                                                                  106 kB/s |  55 MB     08:48
경고: /var/cache/dnf/docker-ce-stable-091d8a9c23201250/packages/containerd.io-1.2.0-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
Docker CE Stable - x86_64                                                                             2.9 kB/s | 1.6 kB     00:00
GPG키 0x621E9F35를 불러옵니다:
 사용자     : "Docker Release (CE rpm) <docker@docker.com>"
  GPG 지문: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
 출처        : https://download.docker.com/linux/centos/gpg
Is this ok [y/N]: y
성공적으로 가져온 키
트랜잭션 점검 실행 중
트랜잭션 검사가 성공했습니다.
트랜잭션 테스트 실행 중
다운로드 된 패키지는 다음 번 성공적인 트랜잭션까지 캐시에 저장되었습니다.
캐시 된 패키지를 제거하려면 'dnf clean packages'.
오류: 거래 확인 오류 :
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-attach.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-build.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-commit.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-container-prune.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-container.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-cp.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-create.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-diff.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-events.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-exec.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-export.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-history.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-image-prune.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-image.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-images.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-import.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-info.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-inspect.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-kill.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-load.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-login.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-logout.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-logs.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-pause.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-port.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-ps.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-pull.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-push.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-restart.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-rm.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-rmi.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-run.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-save.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-search.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-start.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-stats.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-stop.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-system-df.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-system-prune.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-system.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-tag.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-top.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-unpause.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-version.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-volume-create.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-volume-inspect.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-volume-ls.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-volume-prune.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-volume-rm.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-volume.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker-wait.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다
  docker-ce-cli-1:18.09.1-3.el7.x86_64에서 설치되는 /usr/share/man/man1/docker.1.gz 파일은 podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch 패키지의 파일과 충돌합니다

  

     나) Start Docker : 실패

[root@localhost ~]# sudo systemctl start docker
Failed to start docker.service: Unit docker.service not found.

     다) 실패원인 검색 : podman 삭제

[root@localhost ~]#  sudo yum -y remove podman
Modular dependency problems:

 문제 1: conflicting requests
  - nothing provides module(perl:5.26) needed by module perl-DBD-SQLite:1.58:8010020191114033549:073fa5fe-0.x86_64
 문제 2: conflicting requests
  - nothing provides module(perl:5.26) needed by module perl-DBI:1.641:8010020191113222731:16b3ab4d-0.x86_64
Dependencies resolved.
======================================================================================================================================
 Package                    Architecture     Version                                                       Repository            Size
======================================================================================================================================
삭제 중:
 podman                     x86_64           1.4.2-5.module_el8.1.0+237+63e26edc                           @AppStream            51 M
Removing dependent packages:
 cockpit-podman             noarch           4-1.module_el8.1.0+237+63e26edc                               @AppStream           5.1 M
Removing unused dependencies:
 libvarlink                 x86_64           18-3.el8                                                      @anaconda            129 k
 oci-systemd-hook           x86_64           1:0.1.15-2.git2d0b8a3.module_el8.1.0+237+63e26edc             @AppStream            74 k
 podman-manpages            noarch           1.4.2-5.module_el8.1.0+237+63e26edc                           @AppStream           134 k

Transaction Summary
======================================================================================================================================
삭제  5 Packages

Freed space: 56 M
트랜잭션 점검 실행 중
트랜잭션 검사가 성공했습니다.
트랜잭션 테스트 실행 중
트랜잭션 테스트가 완료되었습니다.
거래 실행 중
  준비 중입니다  :                                                                                                                1/1
  스크립틀릿 실행: cockpit-podman-4-1.module_el8.1.0+237+63e26edc.noarch                                                          1/1
  삭제 중        : cockpit-podman-4-1.module_el8.1.0+237+63e26edc.noarch                                                          1/5
  삭제 중        : podman-1.4.2-5.module_el8.1.0+237+63e26edc.x86_64                                                              2/5
  스크립틀릿 실행: podman-1.4.2-5.module_el8.1.0+237+63e26edc.x86_64                                                              2/5
  삭제 중        : podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch                                                     3/5
  삭제 중        : oci-systemd-hook-1:0.1.15-2.git2d0b8a3.module_el8.1.0+237+63e26edc.x86_64                                      4/5
  삭제 중        : libvarlink-18-3.el8.x86_64                                                                                     5/5
  스크립틀릿 실행: libvarlink-18-3.el8.x86_64                                                                                     5/5
  확인 중        : cockpit-podman-4-1.module_el8.1.0+237+63e26edc.noarch                                                          1/5
  확인 중        : libvarlink-18-3.el8.x86_64                                                                                     2/5
  확인 중        : oci-systemd-hook-1:0.1.15-2.git2d0b8a3.module_el8.1.0+237+63e26edc.x86_64                                      3/5
  확인 중        : podman-1.4.2-5.module_el8.1.0+237+63e26edc.x86_64                                                              4/5
  확인 중        : podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch                                                     5/5

제거됨:
  podman-1.4.2-5.module_el8.1.0+237+63e26edc.x86_64
  cockpit-podman-4-1.module_el8.1.0+237+63e26edc.noarch
  libvarlink-18-3.el8.x86_64
  oci-systemd-hook-1:0.1.15-2.git2d0b8a3.module_el8.1.0+237+63e26edc.x86_64
  podman-manpages-1.4.2-5.module_el8.1.0+237+63e26edc.noarch

완료되었습니다!

    라) 설치 재시도 : 성공 

[root@localhost ~]# sudo yum install docker-ce-18.09.1 docker-ce-cli-18.09.1 containerd.io
마지막 메타 데이터 만료 확인 : 0:10:05 전에 2020년 06월 08일 (월) 오후 09시 54분 33초.
Dependencies resolved.
======================================================================================================================================
 Package                         Architecture             Version                            Repository                          Size
======================================================================================================================================
Installing:
 containerd.io                   x86_64                   1.2.0-3.el7                        docker-ce-stable                    22 M
 docker-ce                       x86_64                   3:18.09.1-3.el7                    docker-ce-stable                    19 M
 docker-ce-cli                   x86_64                   1:18.09.1-3.el7                    docker-ce-stable                    14 M
Installing dependencies:
 libcgroup                       x86_64                   0.41-19.el8                        BaseOS                              70 k

Transaction Summary
======================================================================================================================================
설치  4 Packages

Total download size: 55 M
Installed size: 235 M 
Is this ok [y/N]: y
패키지 다운로드중:
(1/4): libcgroup-0.41-19.el8.x86_64.rpm                                                                64 kB/s |  70 kB     00:01
(2-4/4): containerd.io-1.2.0-3.el7.x86_64.rpm                 59% [====================================                         ] 113 (2-4/4): containerd.io-1.2.0-3.el7.x86_64.rpm                 59% [====================================                         ] 116 (2-4/4): docker-ce-18.09.1-3.el7.x86_64.rpm                   59% [====================================                         ] 114 (2-4/4): docker-ce-18.09.1-3.el7.x86_64.rpm                   59% [====================================                         ] 115 (2-4/4): docker-ce-18.09.1-3.el7.x86_64.rpm                   59% [====================================                         ] 115 (2-4/4): docker-ce-cli-18.09.1-3.el7.x86_64.rpm               59% [====================================                         ] 116 (2-4/4): docker-ce-cli-18.09.1-3.el7.x86_64.rpm               59% [====================================                         ] 114 (2-4/4): docker-ce-cli-18.09.1-3.el7.x86_64.rpm               59% [====================================                         ] 117 (2-4/4): docker-ce-cli-18.09.1-3.el7.x86_64.rpm               59% [====================================                         ] 116 (2-4/4): containerd.io-1.2.0-3.el7.x86_64.rpm                 59% [====================================                         ] 114 (2/4): docker-ce-cli-18.09.1-3.el7.x86_64.rpm                                                          41 kB/s |  14 MB     05:51
(3/4): docker-ce-18.09.1-3.el7.x86_64.rpm                                                              41 kB/s |  19 MB     07:50
(4/4): containerd.io-1.2.0-3.el7.x86_64.rpm                                                            45 kB/s |  22 MB     08:20
--------------------------------------------------------------------------------------------------------------------------------------
합계                                                                                                  112 kB/s |  55 MB     08:20
트랜잭션 점검 실행 중
트랜잭션 검사가 성공했습니다.
트랜잭션 테스트 실행 중
트랜잭션 테스트가 완료되었습니다.
거래 실행 중
  준비 중입니다  :                                                                                                                1/1
  Installing     : docker-ce-cli-1:18.09.1-3.el7.x86_64                                                                           1/4
  스크립틀릿 실행: docker-ce-cli-1:18.09.1-3.el7.x86_64                                                                           1/4
  Installing     : containerd.io-1.2.0-3.el7.x86_64                                                                               2/4
  스크립틀릿 실행: containerd.io-1.2.0-3.el7.x86_64                                                                               2/4
  스크립틀릿 실행: libcgroup-0.41-19.el8.x86_64                                                                                   3/4
  Installing     : libcgroup-0.41-19.el8.x86_64                                                                                   3/4
  스크립틀릿 실행: libcgroup-0.41-19.el8.x86_64                                                                                   3/4
  스크립틀릿 실행: docker-ce-3:18.09.1-3.el7.x86_64                                                                               4/4
  Installing     : docker-ce-3:18.09.1-3.el7.x86_64                                                                               4/4
  스크립틀릿 실행: docker-ce-3:18.09.1-3.el7.x86_64                                                                               4/4
  확인 중        : libcgroup-0.41-19.el8.x86_64                                                                                   1/4
  확인 중        : containerd.io-1.2.0-3.el7.x86_64                                                                               2/4
  확인 중        : docker-ce-3:18.09.1-3.el7.x86_64                                                                               3/4
  확인 중        : docker-ce-cli-1:18.09.1-3.el7.x86_64                                                                           4/4

설치됨:
  containerd.io-1.2.0-3.el7.x86_64 docker-ce-3:18.09.1-3.el7.x86_64 docker-ce-cli-1:18.09.1-3.el7.x86_64 libcgroup-0.41-19.el8.x86_64

완료되었습니다!

   마) Start Docker : 성공

[root@localhost ~]#  sudo systemctl start docker
[root@localhost ~]#  sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
0e03bdcc26d7: Pull complete
Digest: sha256:6a65f928fb91fcfbc963f7aa6d57c8eeb426ad9a20c7ee045538ef34847f44f1
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

 

설치 끝.

 

CentOS 8 다운로드

IT/Linux2020. 6. 8. 16:59

 

다운로드 : http://isoredirect.centos.org/centos/8/isos/x86_64/

 

http://mirror.kakao.com/centos/8.1.1911/isos/x86_64/CentOS-8.1.1911-x86_64-dvd1.iso

1. downlaod : http://yum.baseurl.org/download/2.0/index.html

2. gzip -d yum-2.0.8.tar.gz

3. tar -xvf yum-2.0.8.tar

4. cd yum-2.0.8

5. ./configure

6. make

7. make install

 

'IT > Linux' 카테고리의 다른 글

리눅스 버전 확인  (0) 2020.09.22
패스워드 변경 주기 삭제  (0) 2020.08.12
CentOS 8 다운로드  (0) 2020.06.08
/bin/sh^M: bad interpreter: No such file or directory 오류 발생 시  (0) 2020.06.03

- vi 바이너리 모드에서 ^M을 삭제 한다. (vi -b )

 

- 일괄 치환

:%s/^M//g   (^:ctrl+v, M:ctrl+m)

'IT > Linux' 카테고리의 다른 글

리눅스 버전 확인  (0) 2020.09.22
패스워드 변경 주기 삭제  (0) 2020.08.12
CentOS 8 다운로드  (0) 2020.06.08
yum : command not found (Redhat)  (0) 2020.06.08

이클립스에서 mvn spring-boot:run 실행 후 종료했는데 다시 실행이 안되는 경우 아래와 같이 설정을 바꿔주면 됩니다.

pom.xml 에서 spring-boot-maven-plugin 의 configuration안에 <fork>false</fork>추가

            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <addResources>true</addResources>
                    <executable>true</executable>
                    <fork>false</fork>
                    <!--
                    Enable the line below to have remote debugging of your application on port 5005
                    -->
                    <jvmArguments>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments>
                     <arguments>
            			<argument>spring.profiles.active=dev</argument>
        			 </arguments>
                </configuration>
            </plugin>

 

 

윈도우에서 Tortoise Git을 사용하여 변경된 파일을 내려받을 수 있습니다.

 

Tortoise Git 다운로드(https://tortoisegit.org/download/)

 

1.  TortoiseGit > Show log 나 Diff 를 선택한 후

 

 

2. 파일 선택 후 Export selection to.. 를 선택하게 되면 해당 파일들을 폴더 구조로 내려받을 수 있습니다.

 

 <그림>Show log

 

'Progamming > 기타' 카테고리의 다른 글

윈도우2008서버 SMTP설정  (0) 2012.07.04