4/29/2021

Run amazon-linux 2 on local computer using Docker

 

I suppose you already installed docker.


1. pull Amazon Linux image

> docker pull amazonlinux

* https://hub.docker.com/_/amazonlinux


2. run container and enter the os

> docker run -it amazonlinux /bin/bash


3. check version

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/"

or

bash-4.2# > cat /etc/system-release
Amazon Linux release 2 (Karoo)


Thank you.

πŸ™‡πŸ»‍♂️