Yunseok's Dev Blog

배운 것을 적는 블로그입니다.

Docker

How to install Docker using Homebrew

$ brew cask install docker

Install to AMI 2

sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Get IP Address of container

docker inspect -f '' container_name_or_id