json-server (docker)
1. docker image : vimagick/json-server
(https://hub.docker.com/r/vimagick/json-server)
2. docker 에서 json-server 설치
- docker-compose.yml
json-server:
image: vimagick/json-server
command: -H 0.0.0.0 -p 3000 -w db.json
ports:
- "3000:3000"
volumes:
- ./data:/data
restart: always
- docker-compose up -d
[root@localhost ~]# docker-compose up -d
Creating root_json-server_1 ... done
- http://아이피:3000 접속
3. 테스트 (curl)
- data/db.json
[root@localhost ~]# curl http://localhost:3000/db
{
"posts": [
{
"id": 1,
"title": "json-server",
"author": "typicode"
}
],
"comments": [
{
"id": 1,
"body": "some comment",
"postId": 1
}
],
"profile": {
"name": "typicode"
}
- POST : 레코드 추가
[root@localhost ~]# curl -i -X POST -H 'Content-Type: application/json' -d '{"id":2,"title":"test","author":"tester"}' http://localhost:3000/posts
HTTP/1.1 201 Created
X-Powered-By: Express
Vary: Origin, X-HTTP-Method-Override, Accept-Encoding
Access-Control-Allow-Credentials: true
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Access-Control-Expose-Headers: Location
Location: http://localhost:3000/posts/2
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
Content-Length: 54
ETag: W/"36-/lxOJ9UlKz12ZxEx1xqB+hE3CK8"
Date: Wed, 17 Jun 2020 05:22:03 GMT
Connection: keep-alive
{
"id": 2,
"title": "test",
"author": "tester"
}
- PUT : 레코드 수정
[root@localhost ~]# curl -i -X PUT -H 'Content-Type: application/json' -d '{"title":"test1","author":"tester1"}' http://localhost:3000/posts/2
HTTP/1.1 200 OK
X-Powered-By: Express
Vary: Origin, Accept-Encoding
Access-Control-Allow-Credentials: true
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
Content-Length: 56
ETag: W/"38-hQWeLGNyekH8SKlDj7CMiHCakTA"
Date: Wed, 17 Jun 2020 05:25:09 GMT
Connection: keep-alive
{
"title": "test1",
"author": "tester1",
"id": 2
}
- DELETE : 레코드 삭제
[root@localhost ~]# curl -i -X DELETE http://localhost:3000/posts/2
HTTP/1.1 200 OK
X-Powered-By: Express
Vary: Origin, Accept-Encoding
Access-Control-Allow-Credentials: true
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
Content-Length: 2
ETag: W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"
Date: Wed, 17 Jun 2020 05:20:33 GMT
Connection: keep-alive
{}
'IT > 기타' 카테고리의 다른 글
[SAML Test] 1. Setup a Single Sign On SAML Test Environment with Docker and NodeJS (0) | 2020.09.07 |
---|---|
[SAML Test] 2. CentOS 8 nvm을 이용한 node.js 설치 (0) | 2020.09.07 |
Jira API token 생성 (Issue does not exist or you do not have permission to see it) (0) | 2020.06.23 |
Jira 설치 (docker) (0) | 2020.06.23 |
[AWS] EC2 SecureCRT 로 접속하기 (0) | 2020.06.22 |
[Tomcat]도커(Docker)에서 톰캣 설치
doc : https://docs.docker.com/engine/reference/commandline/search/
-docker 이미지 검색 : docker search [옵션] <검색어>
[root@localhost ~]# docker search tomcat8
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
ashince/tomcat8 Tomcat GUI Manager pre-configured docker ima… 5
inovatrend/tomcat8-java8 Tomcat 8 on Oracle Java 8 3 [OK]
rossbachp/tomcat8 Build an optimized reusable apache tomcat 8 … 2
podbox/tomcat8 2 [OK]
dockerbase/tomcat8 Docker Base: Tomcat8 - https://github.com/do… 1 [OK]
oobsri/tomcat8 Testing CI Jobs with different names. 1
slpcat/tomcat8 1
touche/tomcat8 0
prasadklv/tomcat8.5 tomcat8.5 0
junbowang/tomcat8-sshd docker image for tomcat8 with sshd enabled. 0
rabbitsoft/tomcat8-redis-session-valve 0
silentheartbeat/tomcat8-jre8 tomcat8 with jre8 webapps folder cleared 0 [OK]
jelastic/tomcat8 DEPRECATED. Please, refer to the jelastic/to… 0
bskim1029/tomcat8 0
xorol/tomcat85-339-s2i 0
anspfeifer/tomcat8 image para tomcat8 0
time90/tomcat8 jdk1.8 / tomcat8.5.50 0
cloudbourne/tomcat8-helloworld Sample image with HelloWorld running on Tomc… 0
l2as/tomcat8 Image Tomcat8 0 [OK]
kubesphere/tomcat85-java11-centos7 0
socialpro/tomcat8 Docker tomcat8 image 0
kubesphere/tomcat85-java8-centos7 0
kubesphere/tomcat85-java8-runtime 0
kubesphere/tomcat85-java11-runtime 0
touchvie/tomcat8-jdk8 Tomcat 8 and Oracle JDK 8 0 [OK]
-설치 : docker run -d -i -t -p 18080:8080 -p 18009:8009 --name tomcat8 dockerbase/tomcat8
[root@localhost ~]# docker run -d -i -t -p 18080:8080 -p 18009:8009 --name tomcat8 dockerbase/tomcat8
Unable to find image 'dockerbase/tomcat8:latest' locally
latest: Pulling from dockerbase/tomcat8
a3ed95caeb02: Pulling fs layer
bb92073c7a94: Pull complete
255c0b817d4e: Pull complete
b5111d9274a4: Pull complete
2b5c23db3bbc: Pull complete
1fb9bd8e91f3: Pull complete
f2b48bb41d4e: Pull complete
7fbd7408cb99: Pull complete
b5ab1bbe2081: Pull complete
cf2582663501: Pull complete
4d780002cdc0: Pull complete
7e6d4453fc09: Pull complete
36cc22575d61: Pull complete
af4f8342e273: Pull complete
e021e0fe0968: Pull complete
b6b32424f851: Pull complete
f17113fd1f80: Pull complete
bb2697b863c7: Pull complete
00f466febaf3: Pull complete
842952453b3f: Pull complete
d5b5bff76a3e: Pull complete
556ce9efb4e1: Pull complete
60555ad1e6fc: Pull complete
d5a2e2afe282: Pull complete
5d31f7fcd64b: Pull complete
4d792de2d7e3: Pull complete
af64554681e8: Pull complete
a4f5a7289a32: Pull complete
17b2b9aae988: Pull complete
99dff84d92cd: Pull complete
22094ffc4c63: Pull complete
d281a0e8e98b: Pull complete
d107f542e438: Pull complete
933dd0c3fbe5: Pull complete
fe93e74d8af5: Pull complete
514fd448c1c3: Pull complete
9ab15c565bba: Pull complete
a73254a0450f: Pull complete
281ea008ac1a: Pull complete
0d43d05cc5a9: Pull complete
6cd6ca2ec832: Pull complete
89d1e8f1aecc: Pull complete
cff3a45c49ec: Pull complete
c403d510f331: Pull complete
3e9787d7df06: Pull complete
8e36be35dd64: Pull complete
61a92d53649f: Pull complete
a140004a5fed: Pull complete
Digest: sha256:340142649d60b1802d4a921e7d5701a1e3828fbf8ebcaad4ec1087d3d4c0d949
Status: Downloaded newer image for dockerbase/tomcat8:latest
ce53df511b7ff28ccabc7ccdadefe352b61b921ade2f5be8a3f040d866da5eec
-설치확인
[root@localhost ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ce53df511b7f dockerbase/tomcat8 "bash" About an hour ago Up About an hour 0.0.0.0:18009->8009/tcp, 0.0.0.0:18080->8080/tcp tomcat8
d41e7c2f0547 jenkins/jenkins "/sbin/tini -- /usr/…" 2 hours ago Up 2 hours 0.0.0.0:50000->50000/tcp, 0.0.0.0:9000->8080/tcp jenkins
-tomcat 실행 (startup.sh)
[root@localhost ~]# docker exec -it tomcat8 /bin/bash
root@ce53df511b7f:~# cd /usr/local/apache-tomcat-8.0.12/bin
root@ce53df511b7f:/usr/local/apache-tomcat-8.0.12/bin#
root@ce53df511b7f:/usr/local/apache-tomcat-8.0.12/bin# ls -l
total 788
-rw-r--r--. 1 root root 28135 Aug 29 2014 bootstrap.jar
-rw-r--r--. 1 root root 2187 Aug 29 2014 catalina-tasks.xml
-rw-r--r--. 1 root root 13821 Aug 29 2014 catalina.bat
-rwxr-xr-x. 1 root root 21362 Aug 29 2014 catalina.sh
-rw-r--r--. 1 root root 204944 Aug 29 2014 commons-daemon-native.tar.gz
-rw-r--r--. 1 root root 24283 Aug 29 2014 commons-daemon.jar
-rw-r--r--. 1 root root 2040 Aug 29 2014 configtest.bat
-rwxr-xr-x. 1 root root 1922 Aug 29 2014 configtest.sh
-rwxr-xr-x. 1 root root 7888 Aug 29 2014 daemon.sh
-rw-r--r--. 1 root root 2091 Aug 29 2014 digest.bat
-rwxr-xr-x. 1 root root 1965 Aug 29 2014 digest.sh
-rw-r--r--. 1 root root 3430 Aug 29 2014 setclasspath.bat
-rwxr-xr-x. 1 root root 3547 Aug 29 2014 setclasspath.sh
-rw-r--r--. 1 root root 2020 Aug 29 2014 shutdown.bat
-rwxr-xr-x. 1 root root 1902 Aug 29 2014 shutdown.sh
-rw-r--r--. 1 root root 2022 Aug 29 2014 startup.bat
-rwxr-xr-x. 1 root root 1904 Aug 29 2014 startup.sh
-rw-r--r--. 1 root root 40579 Aug 29 2014 tomcat-juli.jar
-rw-r--r--. 1 root root 387417 Aug 29 2014 tomcat-native.tar.gz
-rw-r--r--. 1 root root 4057 Aug 29 2014 tool-wrapper.bat
-rwxr-xr-x. 1 root root 5061 Aug 29 2014 tool-wrapper.sh
-rw-r--r--. 1 root root 2026 Aug 29 2014 version.bat
-rwxr-xr-x. 1 root root 1908 Aug 29 2014 version.sh
root@ce53df511b7f:/usr/local/apache-tomcat-8.0.12/bin# ./startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/java/jre
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.
-화면 접속
'IT > Was' 카테고리의 다른 글
메이븐(Maven)에서 톰캣 SSL(HTTPS) 설정 (0) | 2020.10.14 |
---|---|
톰캣 불필요한웹메서드 제거 (0) | 2020.07.14 |
Jboss AS 7 서버로깅설정 (0) | 2014.03.24 |
JBoss AS 7 설치 (0) | 2014.03.07 |
웹로직 64비트 설치 (0) | 2014.02.10 |
[Docker] 도커 컨테이너에서 VI 사용하기
OS: CentOS 8
- vi: command not found
[root@localhost ~]# docker exec -it jenkins /bin/bash
root@35daffa4efd0:/# vi test
bash: vi: command not found
1) apt-get update
root@35daffa4efd0:/# apt-get update
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Ign:2 http://deb.debian.org/debian stretch InRelease
Get:3 http://deb.debian.org/debian stretch-updates InRelease [93.6 kB]
Get:4 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [528 kB]
Get:5 http://deb.debian.org/debian stretch Release [118 kB]
Get:7 http://deb.debian.org/debian stretch-updates/main amd64 Packages [28.2 kB]
Get:8 http://deb.debian.org/debian stretch Release.gpg [2410 B]
Get:9 http://deb.debian.org/debian stretch/main amd64 Packages [7083 kB]
Get:6 https://packagecloud.io/github/git-lfs/debian stretch InRelease [23.2 kB]
Get:10 https://packagecloud.io/github/git-lfs/debian stretch/main amd64 Packages [4884 B]
Fetched 7976 kB in 1min 11s (112 kB/s)
Reading package lists... Done
2) apt-get install vim
root@35daffa4efd0:/# apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libgpm2 vim-common vim-runtime xxd
Suggested packages:
gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
libgpm2 vim vim-common vim-runtime xxd
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 6769 kB of archives.
After this operation, 31.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian stretch/main amd64 xxd amd64 2:8.0.0197-4+deb9u3 [132 kB]
Get:2 http://deb.debian.org/debian stretch/main amd64 vim-common all 2:8.0.0197-4+deb9u3 [159 kB]
Get:3 http://deb.debian.org/debian stretch/main amd64 libgpm2 amd64 1.20.4-6.2+b1 [34.2 kB]
Get:4 http://deb.debian.org/debian stretch/main amd64 vim-runtime all 2:8.0.0197-4+deb9u3 [5409 kB]
Get:5 http://deb.debian.org/debian stretch/main amd64 vim amd64 2:8.0.0197-4+deb9u3 [1034 kB]
Fetched 6769 kB in 60s (113 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package xxd.
(Reading database ... 12463 files and directories currently installed.)
Preparing to unpack .../xxd_2%3a8.0.0197-4+deb9u3_amd64.deb ...
Unpacking xxd (2:8.0.0197-4+deb9u3) ...
Selecting previously unselected package vim-common.
Preparing to unpack .../vim-common_2%3a8.0.0197-4+deb9u3_all.deb ...
Unpacking vim-common (2:8.0.0197-4+deb9u3) ...
Selecting previously unselected package libgpm2:amd64.
Preparing to unpack .../libgpm2_1.20.4-6.2+b1_amd64.deb ...
Unpacking libgpm2:amd64 (1.20.4-6.2+b1) ...
Selecting previously unselected package vim-runtime.
Preparing to unpack .../vim-runtime_2%3a8.0.0197-4+deb9u3_all.deb ...
Adding 'diversion of /usr/share/vim/vim80/doc/help.txt to /usr/share/vim/vim80/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim80/doc/tags to /usr/share/vim/vim80/doc/tags.vim-tiny by vim-runtime'
Unpacking vim-runtime (2:8.0.0197-4+deb9u3) ...
Selecting previously unselected package vim.
Preparing to unpack .../vim_2%3a8.0.0197-4+deb9u3_amd64.deb ...
Unpacking vim (2:8.0.0197-4+deb9u3) ...
Processing triggers for mime-support (3.60) ...
Setting up xxd (2:8.0.0197-4+deb9u3) ...
Setting up libgpm2:amd64 (1.20.4-6.2+b1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up vim-common (2:8.0.0197-4+deb9u3) ...
Setting up vim-runtime (2:8.0.0197-4+deb9u3) ...
Setting up vim (2:8.0.0197-4+deb9u3) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode
'IT > Docker' 카테고리의 다른 글
[Docker] mysql 설치하기 (0) | 2020.08.21 |
---|---|
[Docker]도커 접속 방법 (docker exec) (0) | 2020.06.11 |
[Docker]도커 오류-Error iptables: No chain/target/match by that name (0) | 2020.06.10 |
[Docker] 도커 설치 (CentOS 8) (0) | 2020.06.09 |
[Docker]도커 접속 방법 (docker exec)
- docker 접속(docker exec -it jenkins /bin/bash) 및 Exit
[root@localhost /]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
35daffa4efd0 jenkins/jenkins "/sbin/tini -- /usr/…" 26 hours ago Up 21 hours 0.0.0.0:50000->50000/tcp, 0.0.0.0:9000->8080/tcp jenkins
[root@localhost /]# docker exec -it jenkins /bin/bash
root@35daffa4efd0:/# ls -l
total 4
drwxr-xr-x. 1 root root 18 Jun 8 14:57 bin
drwxr-xr-x. 2 root root 6 Sep 8 2019 boot
drwxr-xr-x. 5 root root 340 Jun 10 05:33 dev
drwxr-xr-x. 1 root root 66 Jun 10 00:44 etc
drwxr-xr-x. 2 root root 6 Sep 8 2019 home
drwxr-xr-x. 1 root root 45 Jan 30 00:00 lib
drwxr-xr-x. 2 root root 34 Jan 30 00:00 lib64
drwxr-xr-x. 2 root root 6 Jan 30 00:00 media
drwxr-xr-x. 2 root root 6 Jan 30 00:00 mnt
drwxr-xr-x. 2 root root 6 Jan 30 00:00 opt
dr-xr-xr-x. 214 root root 0 Jun 10 05:33 proc
drwx------. 1 root root 50 Jun 11 00:38 root
drwxr-xr-x. 3 root root 30 Jan 30 00:00 run
drwxr-xr-x. 1 root root 18 Jun 8 14:56 sbin
drwxr-xr-x. 2 root root 6 Jan 30 00:00 srv
dr-xr-xr-x. 13 root root 0 Jun 8 16:56 sys
drwxrwxrwt. 1 root root 4096 Jun 11 00:29 tmp
drwxr-xr-x. 1 root root 19 Jan 30 00:00 usr
drwxr-xr-x. 1 root root 26 Jun 8 14:56 var
root@35daffa4efd0:/# pwd
/
root@35daffa4efd0:/# exit
exit
[root@localhost /]#
'IT > Docker' 카테고리의 다른 글
[Docker] mysql 설치하기 (0) | 2020.08.21 |
---|---|
[Docker] 도커 컨테이너에서 VI 사용하기 (0) | 2020.06.11 |
[Docker]도커 오류-Error iptables: No chain/target/match by that name (0) | 2020.06.10 |
[Docker] 도커 설치 (CentOS 8) (0) | 2020.06.09 |
방화벽 해제로 해결함.
- 오류 화면 : http://192.168.31.100:9000/pluginManager/
- 오류 로그 (docker container logs -t -f jenkins)
2020-06-10T04:26:04.338318516Z 2020-06-10 04:26:04.332+0000 [id=61] INFO hudson.util.Retrier#start: Calling the listener of the allowed exception 'updates.jenkins-ci.org' at the attempt #1 to do the action check updates server
2020-06-10T04:26:04.338320820Z 2020-06-10 04:26:04.332+0000 [id=61] INFO hudson.util.Retrier#start: Attempted the action check updates server for 1 time(s) with no success
2020-06-10T04:26:04.338323008Z 2020-06-10 04:26:04.333+0000 [id=61] SEVERE hudson.PluginManager#doCheckUpdatesServer: Error checking update sites for 1 attempt(s). Last exception was: UnknownHostException: updates.jenkins-ci.org
2020-06-10T04:27:45.055334679Z 2020-06-10 04:27:45.048+0000 [id=14] INFO hudson.util.Retrier#start: Attempt #1 to do the action check updates server
2020-06-10T04:27:45.061795723Z 2020-06-10 04:27:45.054+0000 [id=14] INFO hudson.util.Retrier#start: The attempt #1 to do the action check updates server failed with an allowed exception:
2020-06-10T04:27:45.061827451Z java.net.UnknownHostException: updates.jenkins-ci.org
2020-06-10T04:27:45.061840841Z at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
2020-06-10T04:27:45.061845318Z at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
2020-06-10T04:27:45.061848126Z at java.net.Socket.connect(Socket.java:607)
2020-06-10T04:27:45.061851815Z at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
2020-06-10T04:27:45.061854483Z at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
2020-06-10T04:27:45.061857105Z at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
2020-06-10T04:27:45.061859636Z at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
2020-06-10T04:27:45.061862417Z at sun.net.www.http.HttpClient.New(HttpClient.java:339)
2020-06-10T04:27:45.061864915Z at sun.net.www.http.HttpClient.New(HttpClient.java:357)
2020-06-10T04:27:45.061867451Z at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226)
2020-06-10T04:27:45.061870071Z at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
2020-06-10T04:27:45.061872709Z at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
2020-06-10T04:27:45.061875311Z at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990)
2020-06-10T04:27:45.061877867Z at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570)
2020-06-10T04:27:45.061880415Z at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
2020-06-10T04:27:45.061883980Z at hudson.model.DownloadService.loadJSON(DownloadService.java:114)
2020-06-10T04:27:45.061893778Z at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:212)
2020-06-10T04:27:45.061901079Z at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:207)
2020-06-10T04:27:45.061909989Z at hudson.PluginManager.checkUpdatesServer(PluginManager.java:1767)
2020-06-10T04:27:45.061917568Z at hudson.util.Retrier.start(Retrier.java:63)
2020-06-10T04:27:45.061920341Z at hudson.PluginManager.doCheckUpdatesServer(PluginManager.java:1738)
2020-06-10T04:27:45.061922810Z at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
2020-06-10T04:27:45.061925366Z at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
2020-06-10T04:27:45.061927874Z at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
2020-06-10T04:27:45.061930397Z at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
2020-06-10T04:27:45.061940196Z at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
2020-06-10T04:27:45.061943098Z at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
2020-06-10T04:27:45.061945622Z at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
2020-06-10T04:27:45.061948148Z at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535)
2020-06-10T04:27:45.061950633Z at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
2020-06-10T04:27:45.061953405Z at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
2020-06-10T04:27:45.061955953Z at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
2020-06-10T04:27:45.061958443Z at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:169)
2020-06-10T04:27:45.061960905Z at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
2020-06-10T04:27:45.061963423Z at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
2020-06-10T04:27:45.061965874Z at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
2020-06-10T04:27:45.061968374Z at org.kohsuke.stapler.Stapler.invoke(Stapler.java:676)
2020-06-10T04:27:45.061970872Z at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
2020-06-10T04:27:45.061973374Z at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
2020-06-10T04:27:45.061977009Z at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755)
2020-06-10T04:27:45.061986845Z at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
2020-06-10T04:27:45.061993982Z at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
2020-06-10T04:27:45.062002801Z at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:129)
2020-06-10T04:27:45.062010126Z at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
2020-06-10T04:27:45.062012913Z at jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76)
2020-06-10T04:27:45.062015373Z at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
2020-06-10T04:27:45.062017915Z at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
2020-06-10T04:27:45.062020410Z at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
2020-06-10T04:27:45.062023015Z at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:153)
2020-06-10T04:27:45.062025459Z at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
2020-06-10T04:27:45.062027984Z at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
2020-06-10T04:27:45.062030510Z at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
2020-06-10T04:27:45.062036498Z at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
2020-06-10T04:27:45.062039300Z at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
2020-06-10T04:27:45.062041958Z at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
2020-06-10T04:27:45.062044506Z at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
2020-06-10T04:27:45.062047092Z at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
2020-06-10T04:27:45.062049635Z at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
2020-06-10T04:27:45.062052791Z at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
2020-06-10T04:27:45.062061271Z at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
2020-06-10T04:27:45.062069299Z at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
2020-06-10T04:27:45.062075756Z at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
2020-06-10T04:27:45.062086231Z at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
2020-06-10T04:27:45.062089546Z at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
2020-06-10T04:27:45.062092176Z at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
2020-06-10T04:27:45.062094766Z at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
2020-06-10T04:27:45.062097275Z at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
2020-06-10T04:27:45.062099817Z at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
2020-06-10T04:27:45.062102317Z at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
2020-06-10T04:27:45.062104876Z at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
2020-06-10T04:27:45.062107401Z at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
2020-06-10T04:27:45.062109957Z at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
2020-06-10T04:27:45.062112440Z at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
2020-06-10T04:27:45.062114990Z at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
2020-06-10T04:27:45.062117530Z at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
2020-06-10T04:27:45.062120874Z at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:36)
2020-06-10T04:27:45.062123465Z at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
2020-06-10T04:27:45.062128589Z at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545)
2020-06-10T04:27:45.062131258Z at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
2020-06-10T04:27:45.062133819Z at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:566)
2020-06-10T04:27:45.062136306Z at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
2020-06-10T04:27:45.062138814Z at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
2020-06-10T04:27:45.062141347Z at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)
2020-06-10T04:27:45.062143867Z at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
2020-06-10T04:27:45.062146395Z at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1300)
2020-06-10T04:27:45.062148928Z at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
2020-06-10T04:27:45.062151455Z at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
2020-06-10T04:27:45.062153940Z at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)
2020-06-10T04:27:45.062156521Z at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
2020-06-10T04:27:45.062159143Z at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1215)
2020-06-10T04:27:45.062162901Z at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
2020-06-10T04:27:45.062173581Z at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
2020-06-10T04:27:45.062180027Z at org.eclipse.jetty.server.Server.handle(Server.java:500)
2020-06-10T04:27:45.062188889Z at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
2020-06-10T04:27:45.062195668Z at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)
2020-06-10T04:27:45.062198279Z at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
2020-06-10T04:27:45.062200770Z at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
2020-06-10T04:27:45.062203265Z at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
2020-06-10T04:27:45.062205776Z at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
2020-06-10T04:27:45.062208252Z at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
2020-06-10T04:27:45.062211323Z at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
2020-06-10T04:27:45.062213955Z at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
2020-06-10T04:27:45.062216540Z at java.lang.Thread.run(Thread.java:748)
2020-06-10T04:27:45.062229621Z 2020-06-10 04:27:45.056+0000 [id=14] INFO hudson.util.Retrier#start: Calling the listener of the allowed exception 'updates.jenkins-ci.org' at the attempt #1 to do the action check updates server
2020-06-10T04:27:45.062233518Z 2020-06-10 04:27:45.056+0000 [id=14] INFO hudson.util.Retrier#start: Attempted the action check updates server for 1 time(s) with no success
2020-06-10T04:27:45.062236455Z 2020-06-10 04:27:45.056+0000 [id=14] SEVERE hudson.PluginManager#doCheckUpdatesServer: Error checking update sites for 1 attempt(s). Last exception was: UnknownHostException: updates.jenkins-ci.org
'IT > Jenkins' 카테고리의 다른 글
[Jenkins] 도커(Docker)에서 젠킨스 설치 (0) | 2020.06.10 |
---|
[Docker]도커 오류-Error iptables: No chain/target/match by that name
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 |
[Jenkins] 도커(Docker)에서 젠킨스 설치
os : centos8
https://hub.docker.com/_/jenkins/
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 로그인
- 로그인 패스워드 조회
[root@localhost /]# docker exec -it jenkins cat /var/jenkins_home/secrets/initialAdminPassword
b534bce2d0eb4ade8f4563c96dae446e
- 로그인
'IT > Jenkins' 카테고리의 다른 글
[Jenkins]젠킨스 오류. java.net.UnknownHostException: updates.jenkins-ci.org (0) | 2020.06.10 |
---|
[Docker] 도커 설치 (CentOS 8)
참고 : 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/
설치 끝.
'IT > Docker' 카테고리의 다른 글
[Docker] mysql 설치하기 (0) | 2020.08.21 |
---|---|
[Docker] 도커 컨테이너에서 VI 사용하기 (0) | 2020.06.11 |
[Docker]도커 접속 방법 (docker exec) (0) | 2020.06.11 |
[Docker]도커 오류-Error iptables: No chain/target/match by that name (0) | 2020.06.10 |