Home > Net >  robotframework/rfdocker says it is python3 and debian buster based but cannot use apt-get in Dockerf
robotframework/rfdocker says it is python3 and debian buster based but cannot use apt-get in Dockerf

Time:07-13

As the title says when I try to run an 'apt-get -y update' command when building my Robotframework Dockerfile I get the error below:

/bin/sh: apt-get: not found

executor failed running [/bin/sh -c apt-get -y update]: exit code: 127

Can anyone help in explaining why this is the case as per my understanding this should run due to the Debian Buster base?

CodePudding user response:

According to the docker layers on the docker-hub site, it seems, that they decided to use Alpine Linux instead of Debian.
While adding new packages they used apk instead of apt-get, as can be seen here.

So you may want to use apk update instead of apt-get update

  • Related