Closed dsauchanka-boden closed 1 year ago
I have the same problem with the older version
public.ecr.aws/lambda/python:3.8
Out of nowhere this stop working.
If I create a simple container using this image and I try to docker exec find
I get this error:
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "find": executable file not found in $PATH: unknown
and if I check the environment variables, I have this:
PATH=/var/lang/bin:/usr/local/bin:/usr/bin/:/bin:/opt/bin
HOSTNAME=c937b6cfc1df
TERM=xterm
LANG=en_US.UTF-8
TZ=:/etc/localtime
LD_LIBRARY_PATH=/var/lang/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib
LAMBDA_TASK_ROOT=/var/task
LAMBDA_RUNTIME_DIR=/var/runtime
HOME=/root
Maybe something is missing from the PATH?
Hi, Thanks for reporting and apologies for the issue.
We are working on releasing the fix for this. Meanwhile the potential workaround is doing a yum update
before using any of the utilities.
dev-dsk-keshayad-2a-b087bf3d % cat Dockerfile
FROM public.ecr.aws/lambda/python:3.9.2022.08.23.12
RUN yum update
RUN find --help
Logs:
dev-dsk-keshayad-2a-b087bf3d % docker build .
Sending build context to Docker daemon 361.3MB
Step 1/3 : FROM public.ecr.aws/lambda/python:3.9.2022.08.23.12
---> 65cf149ed525
Step 2/3 : RUN yum update
---> Using cache
---> 9012c3281390
Step 3/3 : RUN find --help
---> Running in 6dbd436cdff6
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
default path is the current directory; default expression is -print
expression may consist of: operators, options, tests, and actions:
operators (decreasing precedence; -and is implicit where no others are given):
( EXPR ) ! EXPR -not EXPR EXPR1 -a EXPR2 EXPR1 -and EXPR2
EXPR1 -o EXPR2 EXPR1 -or EXPR2 EXPR1 , EXPR2
positional options (always true): -daystart -follow -regextype
normal options (always true, specified before other expressions):
-depth --help -maxdepth LEVELS -mindepth LEVELS -mount -noleaf
--version -xautofs -xdev -ignore_readdir_race -noignore_readdir_race
tests (N can be +N or -N or N): -amin N -anewer FILE -atime N -cmin N
-cnewer FILE -ctime N -empty -false -fstype TYPE -gid N -group NAME
-ilname PATTERN -iname PATTERN -inum N -iwholename PATTERN -iregex PATTERN
-links N -lname PATTERN -mmin N -mtime N -name PATTERN -newer FILE
-nouser -nogroup -path PATTERN -perm [-/]MODE -regex PATTERN
-readable -writable -executable
-wholename PATTERN -size N[bcwkMG] -true -type [bcdpflsD] -uid N
-used N -user NAME -xtype [bcdpfls]
-context CONTEXT
actions: -delete -print0 -printf FORMAT -fprintf FILE FORMAT -print
-fprint0 FILE -fprint FILE -ls -fls FILE -prune -quit
-exec COMMAND ; -exec COMMAND {} + -ok COMMAND ;
-execdir COMMAND ; -execdir COMMAND {} + -okdir COMMAND ;
Report (and track progress on fixing) bugs via the findutils bug-reporting
page at http://savannah.gnu.org/ or, if you have no web access, by sending
email to <bug-findutils@gnu.org>.
Removing intermediate container 6dbd436cdff6
---> e583a938639b
Successfully built e583a938639b
We've released set of new images for every runtime with the fix. Please consume the latest images.
Logs:
dev-dsk-keshayad-2a-b087bf3d % docker run -it --entrypoint sh public.ecr.aws/lambda/python:3.9.2022.08.26.15
Unable to find image 'public.ecr.aws/lambda/python:3.9.2022.08.26.15' locally
3.9.2022.08.26.15: Pulling from lambda/python
69b97305933b: Pull complete
8ca25f08af04: Pull complete
21df1b8cdc1f: Pull complete
cdd8ca1359da: Pull complete
196603b1f918: Pull complete
2b19dd6789f9: Pull complete
Digest: sha256:c434853c72d77f9401bd0b3118de598b3001a7bc6256618e324ecfa8fe741f4d
Status: Downloaded newer image for public.ecr.aws/lambda/python:3.9.2022.08.26.15
sh-4.2# find --help
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
default path is the current directory; default expression is -print
expression may consist of: operators, options, tests, and actions:
operators (decreasing precedence; -and is implicit where no others are given):
( EXPR ) ! EXPR -not EXPR EXPR1 -a EXPR2 EXPR1 -and EXPR2
EXPR1 -o EXPR2 EXPR1 -or EXPR2 EXPR1 , EXPR2
positional options (always true): -daystart -follow -regextype
normal options (always true, specified before other expressions):
-depth --help -maxdepth LEVELS -mindepth LEVELS -mount -noleaf
--version -xautofs -xdev -ignore_readdir_race -noignore_readdir_race
tests (N can be +N or -N or N): -amin N -anewer FILE -atime N -cmin N
-cnewer FILE -ctime N -empty -false -fstype TYPE -gid N -group NAME
-ilname PATTERN -iname PATTERN -inum N -iwholename PATTERN -iregex PATTERN
-links N -lname PATTERN -mmin N -mtime N -name PATTERN -newer FILE
-nouser -nogroup -path PATTERN -perm [-/]MODE -regex PATTERN
-readable -writable -executable
-wholename PATTERN -size N[bcwkMG] -true -type [bcdpflsD] -uid N
-used N -user NAME -xtype [bcdpfls]
-context CONTEXT
actions: -delete -print0 -printf FORMAT -fprintf FILE FORMAT -print
-fprint0 FILE -fprint FILE -ls -fls FILE -prune -quit
-exec COMMAND ; -exec COMMAND {} + -ok COMMAND ;
-execdir COMMAND ; -execdir COMMAND {} + -okdir COMMAND ;
Report (and track progress on fixing) bugs via the findutils bug-reporting
page at http://savannah.gnu.org/ or, if you have no web access, by sending
email to <bug-findutils@gnu.org>.
sh-4.2#
Python image
3.9.2022.08.23.12
introduced a regression in that it no longer contains commandfind
. Earlier versions up until3.9.2022.08.18.10
contained the command.To reproduce, create this Docker file:
and run
docker build . --no-cache
. The output is as follows: