Comments (4)
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.
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.
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.
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)
- Add TOML support for Podman-Compose? HOT 3
- RuntimeError: volume not defined in top level
- DNS not working anymore on Fedora 40/Podman 5.0 HOT 2
- Multi-line environment files are not correctly processed HOT 1
- Get command without docker-compose labels? HOT 4
- links: with dns name don't seem to work
- FR: Enabling GPU access to service containers
- Podman Compose 1.1.0 fails non-deterministically to start a system with multiple dependencies HOT 1
- Registering a systemd unit should not create pods or containers
- How to install podman-compose in an air-gapped network? HOT 6
- bump podman-compose version to 1.1.1 or 1.2.0 HOT 1
- Broken support for Containerfile
- Building or Running a Service Fails Without Explicit Profile
- Environment variables defined in compose file are included in image build
- Upgrade `podman-compose` to the latest version in pip and Homebrew HOT 1
- Unable to start containers with userns on v1.1.0 HOT 2
- podman multiple erros starting container HOT 1
- podman-compose 1.1.0 no longer loads env file in the same directory with compose.yaml when using `-f` HOT 1
- Podman-compose mount volume incorrectly under Windows with podman machine on WSL
- Required variable syntax ("${BAR:?BAR variable missing}") not resolved when not in quotation marks since v1.1.0 (in command)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from podman-compose.