amazoncorretto:18 docker container missing script command. It’s also important to notice that the amazoncorretto:18 container image requires script (part of util-linux) to be installed in order to have command logs uploaded correctly to S3 and/or CloudWatch.
Describe a solution you would like
we have to add the following line to the amazon linux Docker file.
after enabling the ExecuteCommand got the following errors.
sh-4.2# cat /var/log/amazon/ssm/errors.log 2022-06-17 23:02:40 ERROR [finishLogging @ shell.go.644] [ssm-session-worker] [ecs-execute-command-0a6fde80a0b8fa6ea] [DataBackend] [pluginName=InteractiveCommands] unable to generate log data: Failed to generate transcript with the following errors: exec: "script": executable file not found in $PATH: exec: "script": executable file not found in $PATH:
Thanks for your suggestion. We try to keep our Docker images as clean as possible and would recommend users to install additional packages based on their needs.
Is your feature request related to a problem?
amazoncorretto:18 docker container missing
script
command. It’s also important to notice that the amazoncorretto:18 container image requires script (part of util-linux) to be installed in order to have command logs uploaded correctly to S3 and/or CloudWatch.Describe a solution you would like
we have to add the following line to the amazon linux Docker file.
&& yum install -y util-linux \
Additional context
trying to enable the ecs-exec on aws Fargate task. https://aws.amazon.com/blogs/containers/new-using-amazon-ecs-exec-access-your-containers-fargate-ec2/
after enabling the ExecuteCommand got the following errors.
sh-4.2# cat /var/log/amazon/ssm/errors.log 2022-06-17 23:02:40 ERROR [finishLogging @ shell.go.644] [ssm-session-worker] [ecs-execute-command-0a6fde80a0b8fa6ea] [DataBackend] [pluginName=InteractiveCommands] unable to generate log data: Failed to generate transcript with the following errors: exec: "script": executable file not found in $PATH: exec: "script": executable file not found in $PATH: