Deploy Flask Restful Api Nginx Docker image on Docker | Pull the Docker image | Execute the Docker image
Following are steps to Deploy the Flask Restful API on Docker: Once you have connected to EC2 instance using PuTTY then follow these instructions. 1) Install Docker [ec2-user@ip-172-31-20-251 ~]$ sudo yum install -y docker 2) Start the services of the Docker [ec2-user@ip-172-31-20-251 ~]$ sudo service docker start [ec2-user@ip-172-31-20-251 ~]$ sudo usermod -a -G docker ec2-user 3) Run the Superuser command to get all the permission to perform other task [ec2-user@ip-172-31-20-251 ~]$ sudo su 4) Verify that the ec2-user can run Docker commands without sudo. [root@ip-172-31-20-251 ec2-user]# docker info In some cases, you may need to reboot your instance to provide permissions for the ec2-user to access the Docker daemon. Try rebooting your instance if you see the following error: Cannot connect to the Docker daemon. Is the docker daemon running on this host? Sign up for a Docker Hub Account Docker uses images that are s...