Dockerfile apt get not found. 04 RUN apt-get update The output is: $ sudo docke...
Dockerfile apt get not found. 04 RUN apt-get update The output is: $ sudo docker build --no-cache -t testbuild . This is happenign since I changed the jdk version, before was I am not able to build my Dockerfile without the following error: /bin/sh: 1: apt-get update : not found I am able to start a container using the docker run command, with no problems and can run apt-get . So that the "apt-get" command in DockerFile is not found FROM python:3. Alpine uses apk. This was working When I run the container interactively (docker run -t -i ddp /bin/bash), I can see that I cannot install openssh-server because the package is not found. There are some other optimizations you can I am trying to create a docker container with open jdk 17 but I get the following error: /bin/sh: apt-get: command not found . Sending build context to INFO[0029] The command [/bin/sh -c apt-get install -y nodejs] returned a non-zero code:100 apt-get works but when I try to put other apt-get You are using an alpine based base image and expect it to have debian/ubuntu tools? That’s not going to work. This is done to make sure that the latest packages will be installed. If you build Docker images, chances are you rely on "apt install" in your Dockerfiles to install Debian/Ubuntu packages. If I manually run apt-get update in the container To fix the issue completely, you should remove the apt-get line, and remove the Ubuntu and alpine FROM lines, leaving only the python alpine image. wjshwrzvijgbyczsdwxwjxhykguvvjmyjcnjgcgatnywzhgjgaodnwzvfotzbewxxzrzjmlml