Giter Site home page Giter Site logo

Comments (4)

muayyad-alsadi avatar muayyad-alsadi commented on July 17, 2024

Does this work rootless? What are podman commands to do this?

I guess one need root privilege to create a bridge via brctl and also need root privildge to create veth pair and configure themm. Which I guess rootless podman can't do.

Docker can do that because it's talking to a root daemon which is something bad we are trying to avoid.

from podman-compose.

 avatar commented on July 17, 2024

Not sure if this works in a rootless way. Without this, networks are created automatically per container "group" (i.e. per docker-compose file, such as is the case now) and with this, the network that is created is statically set and the IP addresses per container are as well, so I think (but am not sure) that static networks don't need any extra privileges, but I may be wrong.

Another problem that you may run into, though, is that this particular image wants to open the SMTP and HTTP ports in the container, which are ports below 1024, which probably require root. I get errors if I don't start this with root (even without the static networks). This sounds strange since these ports are not being opened on the host, but on the container (and not even mapped on the host), but that may be a problem or limitation of Podman itself.

from podman-compose.

muayyad-alsadi avatar muayyad-alsadi commented on July 17, 2024

SMTP and HTTP ports in the container, which are ports below 1024, which probably require root.

this is not a problem because you can be root inside container without being root in the host.

here is an example

$ podman run -d  -p 8080:80 -w /var/www/html busybox /bin/busybox httpd -h . -f -p 80

here httpd inside the container opened port 80 because it's root inside the container.

from podman-compose.

 avatar commented on July 17, 2024

Thanks for the tip. This makes it even more strange as I cannot currently use Podman to start the example container without using sudo, even if I remove the static networks.

Could this have something to do with the network type used (e.g. 1podfw)?

from podman-compose.

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.