Answers for "apt-get command not found docker"

0

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
Posted by: Guest on September-06-2021
2

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/
Posted by: Guest on January-11-2022

Code answers related to "apt-get command not found docker"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language