sudo not found docker
# FROM ubuntu:12.04 # RUN apt-get update # And apt-get -y install sudo #RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo USER docker CMD /bin/bash
Source: stackoverflow.com
docker /bin/sh: apt-get: not found
check if you're using alpine linux inside the docker. If this is the case, you may use apk command instead of apt Check here some examples: https://platformengineer.com/install-vi-bash-curl-on-alpine-linux/
Source: platformengineer.com