Giteaを Oracle Cloud Infrastracture で動くように移行する
カジュアルに sudo podman-compose upする。
Dockerのパーミッション関連
docker-compose.yamlの
user
user overrides the user used to run the container process. The default is set by the image (i.e. Dockerfile USER). If it's not set, then root.
userns_mode
userns_mode sets the user namespace for the service. Supported values are platform specific and may depend on platform configuration.
userns_mode: "host"
以下のように設定するとうまくいくという回答があるがなにこれ?
code:plain
userns_mode: keep-id:uid=1000,gid=1000
# あるいは userns_mode: keep-id
Dockerではuser: 1002にするだけで動く
Podmanでは動かない…
usernsを設定すると
Error: --userns and --pod cannot be set together と怒られる
code:plain
$ podman-compose up
Error: adding pod to state: name "pod_gitea" is in use: pod already exists
47aa6cdfe6bcd1cfe3dac6ee825f80ccd32dba89135ade55c72959f7b41d5b92
server | chmod: /var/lib/gitea/git: Operation not permitted server | /var/lib/gitea/git is not writable