티스토리 뷰
728x90
출처
Rocky Linux 이미지 다운로드
D:\docker>docker pull rockylinux:9
9: Pulling from library/rockylinux
446f83f14b23: Pull complete
Digest: sha256:d7be1c094cc5845ee815d4632fe377514ee6ebcf8efaed6892889657e5ddaaa6
Status: Downloaded newer image for rockylinux:9
docker.io/library/rockylinux:9
What's next:
View a summary of image vulnerabilities and recommendations → docker scout quickview rockylinux:9
Rocky Linux 컨테이너 실행
D:\docker>docker run -it --name rockylinux9_container rockylinux:9 /bin/bash
Docker 컨테이너 목록 확인
D:\docker>docker ps -al
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0742e89fc2d8 rockylinux:9 "/bin/bash" About an hour ago Up 5 seconds rockylinux9_container
Docker 컨테이너 종료
D:\docker>docker stop rockylinux9_container
rockylinux9_container
Docker 종료된 컨테이너 목록 확인
D:\docker>docker ps -al
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0742e89fc2d8 rockylinux:9 "/bin/bash" About an hour ago Exited (137) 6 seconds ago rockylinux9_container
Docker 컨테이너 삭제
D:\docker>docker rm rockylinux9_container
rockylinux9_container
Docker 이미지 목록 확인
D:\docker>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
rockylinux 9 9cc24f05f309 13 months ago 176MB
Docker 이미지 삭제
D:\docker>docker rmi 9cc24f05f309
Untagged: rockylinux:9
Untagged: rockylinux@sha256:d7be1c094cc5845ee815d4632fe377514ee6ebcf8efaed6892889657e5ddaaa6
Deleted: sha256:9cc24f05f309508aa852967ab1e3b582b302afc92605c24ce27715c683acd805
Deleted: sha256:44343de3ea1d3f71f143967c71a91df76138a17a21ac56642f3c0f2a64b07dce
Rocky Linux 컨테이너 실행
D:\docker>docker run -it ^
--hostname 0.0.0.0 ^
--publish 10022:22 --publish 10080:80 --publish 10443:443 --publish 18080:8080 --publish 18443:8443 ^
--name rockylinux ^
--restart always ^
--volume //d/docker/rockylinux/bluexmas_home:/usr/local/bluexmas_home ^
rockylinux/rockylinux:9.5 ^
/bin/bash
Unable to find image 'rockylinux/rockylinux:9.5' locally
9.5: Pulling from rockylinux/rockylinux
3442e16c7069: Pull complete
Digest: sha256:149fd31d916038eb1084d0e051537e279d7afcd5de0b365254e8fa3c3ef12bad
Status: Downloaded newer image for rockylinux/rockylinux:9.5
[root@0 /]#
Rocky Linux /bin/bash 접속
[root@0 /]# exit
exit
D:\docker>docker ps -l
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES
554f3e3a7bd4 rockylinux/rockylinux:9.5 "/bin/bash" 37 seconds ago Up 6 seconds 0.0.0.0:10022->22/tcp, 0.0.0.0:10080->80/tcp, 0.0.0.0:10443->443/tcp, 0.0.0.0:18080->8080/tcp, 0.0.0.0:18443->8443/tcp rockylinux
D:\docker>docker exec -it 554f3e3a7bd4 /bin/bash
[root@0 /]#
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- SAS
- 동경
- NDK
- Spring MVC
- 전예희
- Mac
- ble
- 송주경
- BPI-M4
- Linux
- MySQL
- Delphi Tip
- android
- sas2009
- JavaScript
- oracle
- flex
- 지스타2007
- ffmpeg
- Xcode
- Java
- Spring
- Delphi
- koba2010
- 레이싱모델 익스트림 포토 페스티벌
- 일본여행
- KOBA
- 서울오토살롱
- 튜닝쇼 2008
- ubuntu
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함