AWS Batch — 5

Arash Kamangir
2 min readSep 24, 2023

--

Next, submit “ls”, creating a new job definition,

needed for docker pull from ecr.

[
"echo","hello world", ";",
"ls", "*"
]

CannotStartContainerError: ResourceInitializationError: unable to create new container: mount callback failed on /tmp/containerd-mount1218781735: no users found

using https://stackoverflow.com/a/75049937/17619982

🚀

🤔

What Is AWS Batch?: https://docs.aws.amazon.com/batch/latest/userguide/getting-started-fargate.html

For Command, specify the command to pass to the container. This parameter maps to Cmd in the Create a container section of the Docker Remote API and the COMMAND parameter to docker run. For more information about the Docker CMD parameter, see https://docs.docker.com/engine/reference/builder/#cmd.

sh -c echo hello world ; ls *
["sh", "-c", "echo","hello world",";","ls","*"]

no log, as expected.

abcli select
echo "hello world" > check.txt
abcli upload
abcli list cloud .

idea: give the execution role access to s3, and have the docker upload a file to s3. aws is not installed in the container . 🛑

next: push abcli to docker hub and validate it in the container configuration.

--

--

No responses yet