GithubHelp home page GithubHelp logo

podman permission issue about bazzite HOT 3 CLOSED

so1ar avatar so1ar commented on June 18, 2024
podman permission issue

from bazzite.

Comments (3)

wolfyreload avatar wolfyreload commented on June 18, 2024

This isn't actually Bazzite issue, Podman works a little differently to Docker. I have adjusted your script so I could read it and got it running

# add folder if folder doesn't exist
mkdir -p ~/containers/qbittorrent
# I've added :rw to the end of your volume mounts (it's a podman thing to make it read/writable)
podman run -it \
  --name=qbittorrent \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Asia/Shanghai \
  -e WEBUI_PORT=8081 \
  -e TORRENTING_PORT=6881 \
  -p 8081:8081 \
  -p 6881:6881 \
  -p 6881:6881/udp \
  -v ~/containers/qbittorrent:/config:rw \
  -v ~/Downloads/:/downloads:rw \
  --restart unless-stopped \
  lscr.io/linuxserver/qbittorrent:latest

My output

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────

[custom-init] No custom files found, skipping...
crond[143]: crond (busybox 1.36.1) started, log level 5
WebUI will be started shortly after internal preparations. Please wait...

******** Information ********
To control qBittorrent, access the WebUI at: http://localhost:8081

The WebUI administrator username is: admin
The WebUI administrator password was not set. A temporary password is provided for this session: abcdefgh
You should set your own password in program preferences.
Connection to localhost (::1) 8081 port [tcp/tproxy] succeeded!

from bazzite.

noelmiller avatar noelmiller commented on June 18, 2024

This is likely an SELinux issue. You need to account for SELinux contexts when running a rootless container. At the end of each volume mount, you need to include :z.

Example: -v ~/Downloads:/downloads:z

To test if it's SELinux, you could sudo setenforce permissive to set SELinux in permissive mode. This will bypass SELinux and is a great way to test if this is the issue without adding :z to your commands.

from bazzite.

so1ar avatar so1ar commented on June 18, 2024

This is likely an SELinux issue. You need to account for SELinux contexts when running a rootless container. At the end of each volume mount, you need to include :z.

Example: -v ~/Downloads:/downloads:z

To test if it's SELinux, you could sudo setenforce permissive to set SELinux in permissive mode. This will bypass SELinux and is a great way to test if this is the issue without adding :z to your commands.

Thanks, including :z fix the issue.

from bazzite.

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.