티스토리 뷰
1. https://tommypagy.tistory.com/587
2. OKD 대시보드 환경
3. War 배포
6. Web Server 와 WAS Server 차이점
7. 도커 push/pull/run 이란 (아래바로가기)
9. Docker Image 생성및 hub 업로드 방법
10. Docker 의 기본은 알고 가자!
https://techblog-history-younghunjo1.tistory.com/245
11. 아래는 샘플이니 따라해보자요!
[샘플]
docker run --name [만들 컨테이너 이름] -it [pull시킬 이미지]
[action]
docker run --name webserver1 -it ubuntu:20.04
[샘플]
docker commit [이미지화시킬 컨테이너이름] [생성할 이미지 repo]:[생성할 이미지 tag]
[action]
docker commit webserver1 weberver1-python:python
root@ea86c284f292:/# docker commit webserver1 weberver1-python:python
bash: docker: command not found
root@ea86c284f292:/# exit
exit
[root@m-k8s ~]# docker commit webserver1 weberver1-python:python
sha256:bb95fb4bc709002f575df39910dfa99e74e5d59df48935e8cbb2c2ca4ebbb8c9
[root@m-k8s ~]# docker image
Usage: docker image COMMAND
Manage images
Commands:
build Build an image from a Dockerfile
history Show the history of an image
import Import the contents from a tarball to create a filesystem image
inspect Display detailed information on one or more images
load Load an image from a tar archive or STDIN
ls List images
prune Remove unused images
pull Pull an image or a repository from a registry
push Push an image or a repository to a registry
rm Remove one or more images
save Save one or more images to a tar archive (streamed to STDOUT by default)
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
Run 'docker image COMMAND --help' for more information on a command.
[root@m-k8s ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
[weberver1-python python bb95fb4bc709 15 seconds ago 158MB]
dockerfile 0.1 9c61764b029f 29 minutes ago 231MB
ubuntu 20.04 bf40b7bc7a11 12 days ago 72.8MB
centos latest 5d0da3dc9764 2 years ago 231MB
[root@m-k8s home]# vi /root/Desktop/Dockerfile
[root@m-k8s home]# docker build -t webserver2-build2 /root/Desktop/;
Sending build context to Docker daemon 2.048kB
Step 1/2 : FROM ubuntu:20.04
---> bf40b7bc7a11
Step 2/2 : RUN apt update && apt install -y python3
---> Using cache
---> ed6a3007afd4
Successfully built ed6a3007afd4
Successfully tagged webserver2-build2:latest
[root@m-k8s home]# cat Dockerfile
FROM ubuntu:20.04
RUN apt update && apt install -y python3
[root@m-k8s home]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
webserver1-build latest ed6a3007afd4 41 minutes ago 158MB
webserver2-build2 latest ed6a3007afd4 41 minutes ago 158MB
tommypagy/tommypagy-repository cymtest-webserver ed6a3007afd4 41 minutes ago 158MB
fastwon1/apathc2-test v1 ed6a3007afd4 41 minutes ago 158MB
cymtest-webserver latest ed6a3007afd4 41 minutes ago 158MB
tommypagy latest ed6a3007afd4 41 minutes ago 158MB
weberver1-python python bb95fb4bc709 2 hours ago 158MB
dockerfile 0.1 9c61764b029f 2 hours ago 231MB
ubuntu 20.04 bf40b7bc7a11 12 days ago 72.8MB
centos latest 5d0da3dc9764 2 years ago 231MB
[root@m-k8s home]# docker push tommypagy/tommypagy-repository:cymtest-webserver
The push refers to repository [docker.io/tommypagy/tommypagy-repository]
8c261b2ecdee: Layer already exists
6c3e7df31590: Layer already exists
cymtest-webserver: digest: sha256:774983c8593c78d15fa5c2e34f82ee3311353673eedffbbaffd2718f3f478b3c size: 741
[root@m-k8s home]#
https://themapisto.tistory.com/m/187
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 커널
- 쿠버네티스
- 여러서버 컨트롤
- 오라클 트러블 슈팅(성능 고도화 원리와 해법!)
- 버쳐박스
- 스토리지 클레스
- pod 상태
- 오라클
- Oracle
- [오라클 튜닝] instance 튜닝2
- [오라클 튜닝] sql 튜닝
- CVE 취약점 점검
- 우분투
- K8s
- (InstantClient) 설치하기(HP-UX)
- 코로나19
- 키알리
- 트리이스
- 테라폼
- 앤시블
- ubuntu
- 오라클 인스턴트클라이언트(InstantClient) 설치하기(HP-UX)
- 5.4.0.1072
- MSA
- 설치하기(HP-UX)
- startup 에러
- ORACLE 트러블 슈팅(성능 고도화 원리와 해법!)
- 튜닝
- 오라클 홈디렉토리 copy 후 startup 에러
- directory copy 후 startup 에러
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함