It seems that useradd
is not in amazonlinux docker base image.
useradd
will work when when my Dockerfile install openldap-devel, so RUN useradd my_user
will work when I my image have the following:
FROM amazonlinux
RUN yum -y install python3 \
gcc \
python3-pip \
python3-devel \
openldap-devel
When my image is just build from
FROM amazonlinux
RUN yum -y install python3 \
gcc \
python3-pip \
python3-devel
The command RUN useradd my_user
fails with the error message /bin/sh: useradd: command not found
How do I install useradd
in an amazonlinux base image without having to install all openldap-devel