develog

[docker] ubuntu 실행 본문

Dev/docker

[docker] ubuntu 실행

냐옴 2022. 2. 5. 11:13

 

$ docker pull ubuntu:20.04

$ docker images
REPOSITORY         TAG       IMAGE ID       CREATED        SIZE
ubuntu             20.04     54c9d81cbb44   3 days ago     72.8MB

$ docker run -itd --name ubuntu ubuntu:20.04 bash
9f225a6324a5030f34085a1ed9ac1423bdc1df1021b05eb5db306389942e3ac3

$ docker ps
CONTAINER ID   IMAGE                     COMMAND             CREATED          STATUS                 PORTS          NAMES
9f225a6324a5   ubuntu:20.04              "bash"              19 seconds ago   Up 16 seconds                         ubuntu

$ docker exec -it ubuntu bash
root@9f225a6324a5:/# cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
...

'Dev > docker' 카테고리의 다른 글

docker ubuntu ssh 접속  (0) 2022.02.08
[docker] Dockerfile 명령어  (0) 2022.02.07
docker timezone 설정  (0) 2020.08.06
[docker] CentOS, Ubuntu 에 docker engine 설치하기  (0) 2020.08.06
[docker] docker-compose  (0) 2020.01.17
Comments