본문 바로가기

리눅스

[리눅스] 도커 이미지(운영체제 이미지)

728x90

도커 이미지(운영체제 이미지)

docker images
REPOSITORY             TAG       IMAGE ID       CREATED             SIZE
amazonlinux            2022      c51c1f7cb94a   About an hour ago   189MB
ubuntu                 latest    d2e4e1f51132   3 days ago          77.8MB
ubuntu                 18.04     c6ad7e71ba7d   3 days ago          63.2MB
amazonlinux            latest    365842604a8b   11 days ago         164MB
rockylinux             latest    c830f8e8f82b   6 weeks ago         205MB
centos                 7         eeb6ee3f44bd   7 months ago        204MB
centos                 latest    5d0da3dc9764   7 months ago        231MB

Amazon Linux 2

docker run -it --rm --name amazonlinux amazonlinux:latest bash
bash-4.2# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

Amazon Linux 2022

docker run -it --rm --name amazonlinux amazonlinux:2022 bash
bash-5.1# cat /etc/os-release
NAME="Amazon Linux"
VERSION="2022"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2022"
PLATFORM_ID="platform:al2022"
PRETTY_NAME="Amazon Linux 2022"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2022"
HOME_URL="https://amazonlinux.com/"

Ubuntu 22.04 LTS(Jammy Jellyfish)

docker run -it --rm --name ubuntu_22.04 ubuntu:latest bash
root@fcc41fb6c5ab:/# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Rocky Linux 8.5 (Green Obsidian)

docker run -it --rm --name rockylinux rockylinux:latest bash
[root@e4d77f1af082 /]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="8.5 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.5"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.5 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"

CentOS Linux 8.4

docker run -it --rm --name centos8 centos:latest bash
[root@ae7bdbbbb2cc /]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"

[root@ae7bdbbbb2cc /]# cat /etc/redhat-release
CentOS Linux release 8.4.2105

 

728x90