(base) C:\Windows\system32>docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
(base) C:\Windows\system32>docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
(base) C:\Windows\system32>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
(base) C:\Windows\system32>docker ps --all
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
(base) C:\Windows\system32>docker rmi hello-world
Error response from daemon: No such image: hello-world:latest
(base) C:\Windows\system32>docker rm
"docker rm" requires at least 1 argument.
See 'docker rm --help'.
Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...]
Remove one or more containers
(base) C:\Windows\system32>docker rm --help
Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...]
Remove one or more containers
Aliases:
docker container rm, docker container remove, docker rm
Options:
-f, --force Force the removal of a running container (uses SIGKILL)
-l, --link Remove the specified link
-v, --volumes Remove anonymous volumes associated with the container
(base) C:\Windows\system32>docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
719385e32844: Pull complete
Digest: sha256:88ec0acaa3ec199d3b7eaf73588f4518c25f9d34f58ce9a0df68429c5af48e8d
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/
(base) C:\Windows\system32>docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
(base) C:\Windows\system32>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-world latest 9c7a54a9a43c 5 months ago 13.3kB
(base) C:\Windows\system32>docker run -it ubuntu bash
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
aece8493d397: Pull complete
Digest: sha256:2b7412e6465c3c7fc5bb21d3e6f1917c167358449fecac8176c6e496e5c1f05f
Status: Downloaded newer image for ubuntu:latest
root@9dd09b7d44d8:/# cd usr
root@9dd09b7d44d8:/usr# cd ..
root@9dd09b7d44d8:/# exit
exit
(base) C:\Windows\system32>docker run --name teamlab-mysql -e
flag needs an argument: 'e' in -e
See 'docker run --help'.
(base) C:\Windows\system32>docker run --name teamlab-mysql -e MYSQL_ROOT_PASSWORD=pknu1234 -d mysql:5.7.35
Unable to find image 'mysql:5.7.35' locally
5.7.35: Pulling from library/mysql
b380bbd43752: Pull complete
f23cbf2ecc5d: Pull complete
30cfc6c29c0a: Pull complete
b38609286cbe: Pull complete
8211d9e66cd6: Pull complete
2313f9eeca4a: Pull complete
7eb487d00da0: Pull complete
bb9cc5c700e7: Pull complete
88676eb32344: Pull complete
8fea0b38a348: Pull complete
3dc585bfc693: Pull complete
Digest: sha256:b8814059bbd9c80b78fe4b2b0b70cd70fe3772b3c5d8ee1edfa46791db3224f9
Status: Downloaded newer image for mysql:5.7.35
4e0b88eb368b2bf1c4a1cfcdca310118430755ccbafaa8e087a34cfb7b8ce2de
(base) C:\Windows\system32>docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4e0b88eb368b mysql:5.7.35 "docker-entrypoint.s…" 6 seconds ago Up 3 seconds 3306/tcp, 33060/tcp teamlab-mysql
(base) C:\Windows\system32>docker exec -it teamlab-mysql bash
root@4e0b88eb368b:/# exit
exit
(base) C:\Windows\system32>docker pull mysql:5.7.35
5.7.35: Pulling from library/mysql
Digest: sha256:b8814059bbd9c80b78fe4b2b0b70cd70fe3772b3c5d8ee1edfa46791db3224f9
Status: Image is up to date for mysql:5.7.35
docker.io/library/mysql:5.7.35
What's Next?
View a summary of image vulnerabilities and recommendations → docker scout quickview mysql:5.7.35
(base) C:\Windows\system32>docker ps --all
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4e0b88eb368b mysql:5.7.35 "docker-entrypoint.s…" 46 seconds ago Up 44 seconds 3306/tcp, 33060/tcp teamlab-mysql
9dd09b7d44d8 ubuntu "bash" 2 minutes ago Exited (0) 2 minutes ago brave_grothendieck
75f835390f85 hello-world "/hello" 5 minutes ago Exited (0) 5 minutes ago strange_greider
(base) C:\Windows\system32>docker images4
docker: 'images4' is not a docker command.
See 'docker --help'
(base) C:\Windows\system32>(base) C:\Windows\system32>docker images4
C:\Windows\system32은(는) 예상되지 않았습니다.
(base) C:\Windows\system32>docker: 'images4' is not a docker command.
'docker:'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
(base) C:\Windows\system32>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest e4c58958181a 13 days ago 77.8MB
hello-world latest 9c7a54a9a43c 5 months ago 13.3kB
mysql 5.7.35 8a8a506ccfdc 2 years ago 448MB
(base) C:\Windows\system32>
녹음
2023.10.18 수 오후 6:33 ・ 52분 11초
안예현
AI 요약
쿠버네티스의 개념
- 쿠버네티스는 여러 개의 다커를 오케스트레이션이라고 하는데 직종에서 관리할 때는 쿠버네티스라는 기술을 사용함
- 쿠버네티스는 배 모양이고 다커는 고래 모양으로 많이 표현이 됨
- 다커는 다커 h 또는 다커 닷컴에서 설치를 해야 되고 윈도우 1 이상에서 ws2l2를 깔아야 함
다커 파일의 개념
- 다커 파일을 가지고 실제 압축을 해서 하나의 os를 패키징한 걸 이미지라 함
- 다커 h은 이미지를 업로드하거나 다운로드하는 것과 비슷함
- 다커 론 헬로우 월드는 기본적으로 다커가 만들어놓은 것임
- 컨테이너 생성 코드가 뭔지 설명하고 컨테이너 내부에 들어가 있는 것을 설명함
컨테이너의 대모 프로그램
- 컨테이너가 계속 실행되게 하려면 대모 프로그램을 돌려야 함
- 대모 프로그램을 돌릴 수 있는 프로그램들을 만들어야 함
- api 서버가 어떻게 되는지 설명하고 있음
채지피티의 사용법
- html 파일을 어디다 쓰는 거냐고 묻자 pi가 아니라 ipymb라고 함
- 채지피티 사용해서 하면 된다고 함
- 코드에 대해 설명해 주고 실행 방법을 알려달라고 함
다크 컨테이너
- 다크 컨테이너를 실행하는 건데 마이 엔진x라는 이미지 이름을 하나 구현 시도록 함
- 마이너스 d 옵션은 디텍티드 모드임
- 백그라운드에서 데모 모드를 실행하는 건 마이너스 p는 포트 매핑임
- 시스템 포트가 80인 컨테이너 포트를 사용하면 됨
- 닥터 콤포즈까지 배운 우리가 다크 컴퍼즈를 가져와서 여러 개의 파일을 빌드하고 시스템들을 빌드할 것임
clovanote.naver.com
'학교생활 (프로젝트&강의정리) > 소프트웨어공학&비즈니스애널리틱스 (최성철 교수님) 2023-2' 카테고리의 다른 글
Docker Compose (2) | 2023.11.06 |
---|---|
Back-end directory structure (0) | 2023.10.31 |
chat-gpt study #1 (3) | 2023.10.17 |
[AWS 101 기초 교육] CloudComputing (2) | 2023.09.19 |
학과 해외학회 논문 제출 개요 (0) | 2023.09.17 |