Skip to content

Rootless Docker-Compose Guide #10644

Answered by Luap99
Maxplosion asked this question in Q&A
Discussion options

You must be logged in to vote

Yes it is almost the same as described in the blog. Some differences are:

  1. use systemctl --user instead of sudo systemctl
  2. test the socket with curl -H "Content-Type: application/json" --unix-socket $XDG_RUNTIME_DIR/podman/podman.sock http://localhost/_ping
  3. I exported DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock, this allows you to skip the -H on each docker-compose command.
  4. you cannot bind ports below 1024 on the host, see https://github.com/containers/podman/blob/master/rootless.md for more shortcomings
  5. you cannot directly connect to the container ip from the host, you have to use port forwarding or enter the net namespace with podman unshare --rootless-cni

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Maxplosion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants