Giter Site home page Giter Site logo

Comments (2)

theesm avatar theesm commented on June 10, 2024

l want to open the container in docker to compile and test atop related functions. But when starting systemctl start atopacct.service, it will return NETLINK family, errno -2. Do you know why this is, I still can't understand it.

This issue is on dockers, not on atopacctds, side, as docker is heavily limiting the containers privileges, as well as on the way netlink sockets behave in a containerized environment.

Docker supports altering privileges of containers using linux.die.net: capabilities(7) by passing them via --cap-add, but your best bet would probably to start with a permissive container configuration (something like docker run --privileged --pid=host), see if it solves the issue, and if it does, limiting the privileges again until you got a minimal working configuration.

My best bet would be that you may need something like NET_ADMIN as a capability (see the security considerations of RFC 3549 as a reference here), --pid=host is probably useful if you want to share the host’s process namespace with the container (though it's not mandatory for this issue, it could be beneficial in general).

from atop.

Atoptool avatar Atoptool commented on June 10, 2024

I assume that the comment of Wilko clarified the issue.

from atop.

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.