Git Product home page Git Product logo

Comments (4)

mko-x avatar mko-x commented on July 18, 2024

You may consider forking this repo change the stuff you need directly in the Dockerfiles

from docker-clamav.

mko-x avatar mko-x commented on July 18, 2024

Docker is not expected to allow interactive root acceess. As you may need the stuff from a packagemanager frquently you should suggest to add the stuff within the Dockerfile - or you can fork directly from the image and add the stuff you need to your Dockerfile.

More info here https://stackoverflow.com/questions/56837236/set-password-for-root-user-in-docker

and here https://www.secpod.com/blog/watch-out-for-alpine-linux-docker-image-root-login-vulnerability/

from docker-clamav.

Leviani avatar Leviani commented on July 18, 2024

Thank you very much for that information.

Interestingly enough, when I run the container in a local Docker Desktop and connect to it with docker exec -u 0 /bin/bash the login happens as root and I can do a regular Apt-Get update.
When I try to login into the container running inside of an Azure Container Instance, I do not have that permission anymore.

I guess I need to investigate way more time into preparing the image before uploading it to the Cloud, instead of fixing the already running image :)

from docker-clamav.

mko-x avatar mko-x commented on July 18, 2024

Yes probably. Most running frameworks like Azure and Kubernetes restrict the access within the containers for security reasons.

from docker-clamav.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.