Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Calculator

0

140
Views
When a task turn ECS does the docker run in detached mode or Foreground mode

When a task run in ECS does it docker run in Foreground or in detached mode. Is it possible to set these options in the task definition?

9 months ago · Santiago Trujillo
1 answers
Answer question

0

They run in detached mode. This is evident if you login to your container instance and inspect the docker run command used to launch your task.

An example from my ECS instance:

docker run \
        [parts not shown]
        --detach=true \
        1234455666.dkr.ecr.us-east-1.amazonaws.com/a03c-fffffecr-fffffos4q \
        python3 app.py

Notice the --detach=true option.

I'm not aware of any way to change this option. When ECS starts, there is no terminal tty to run in the attached mode anyway.

9 months ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2023 PeakU Inc. All Rights Reserved.