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/