/
ECS to Docker Container Steps

ECS to Docker Container Steps

  1. Got o the ECS panel

  2. image-20240622-075343.png

     

  3. Either create a new cluster or create a new one

  4. Select Task definitions, you can’t create a service without defining a task, it is the task that links to your Docker repo

  5. image-20240622-075638.png

     

  6. Give the task a name and set the Task execution role to “Create new role”

  7. Connect to your repo and expose the ports that the container exposes, and be sure to give the port mappings names

  8. Select Create at the bottom of the page

Creating a service

  1. Select the cluster you want to work with, or create a new one

  2.  

  3. Create a new service

  4.  

  5. In the Family section select the task you created

  6.  

  7. The service name must be unique just as they are when you create a docker docker container

  8. In the networking section you will need to expose the ports to the outside world

  9.  

  10. Either create a new security group (must be unique) or use an existing one, make sure the ports you expose the ports you exposed in the task

  11.  

  12. Select Create at the bottom of the page

  13. Wait for the service to be deployed

  14. To see the service running select the tasks running

  15. Select the task

  16.  

  17. You can now access the service via the public IP

 

Related content

AWS EC2 Container Service
AWS EC2 Container Service
More like this
Networking for IPC
Networking for IPC
More like this
Using docker from windows shell or powershell
Using docker from windows shell or powershell
More like this
NATing - Exposing containers outside of the Host
NATing - Exposing containers outside of the Host
More like this
Installing Docker
More like this
Kubernetes
More like this