Amazon Linux Docker Install

Here’s the installation of Docker for the original Amazon Linux.

# To install docker
sudo yum install docker
sudo service docker start
# Validate it's working
docker --version
docker run hello-world
docker ps -a
docker image ls

Icecast on Docker

Run Icecast2 on a Docker container.

docker run -d \
-p 8000:8000 \
-e ICECAST_SOURCE_PASSWORD=aaaa \
-e ICECAST_ADMIN_PASSWORD=bbbb \
-e ICECAST_PASSWORD=cccc \
-e ICECAST_RELAY_PASSWORD=dddd \
moul/icecast

Access localhost:8000 on browser. Github.

Run Docker Without Sudo

Run Docker without sudo. Add user to docker group. Login as docker using newgrp.

sudo gpasswd -a $user docker
newgrp docker

You can now run the following commands without sudo.

docker ps
docker images

Every time you open a new terminal , just run.

newgrp docker