Docker Running On AWS EC2 Linux

How to Setup Docker on AWS EC2

$ sudo yum update
$ sudo amazon-linux-extras install docker
$ sudo service docker start
$ docker
$ docker info
$ docker images
$ docker pull nginx
$ docker images
$ docker tag <image id> tagname
$ docker login
$ docker push tagname

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store