- docker @ Amazon Linux(link)
sudo amazon-linux-extras install docker
sudo yum install docker
sudo service docker start
sudo usermod -a -G docker ec2-user
# logout and login
docker info
- docker-compose @ Linux(link)
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=1234 -d --rm mysql:5 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
sleep 5
docker exec -i -t mysql mysql -p1234 -e 'create database test'
docker run --name redis -p 6379:6379 -d --rm redis:5