botan-party / gretel

Minecraft Spigot サーバを運用するための実行環境
MIT License
0 stars 1 forks source link

docker-compose.yml を利用することができない #26

Closed usagiga closed 2 years ago

usagiga commented 2 years ago

docker compose up を行うと以下のようなログが出て、異常終了する。

$ sudo docker compose up
[+] Running 1/1
 ⠿ Container gretel_app_1  Started                                        0.2s
Attaching to app_1
app_1  | /entrypoint.sh: line 7: can't create /opt/spigot/version.txt: Permission denied
app_1 exited with code 1

この環境で ls -l1 /opt/spigot すると、以下の通り、owner が root になってしまっている。

app_1  | total 4
app_1  | drwxr-xr-x    2 root     root          4096 Jan  5 14:47 spigot

環境

$ sudo docker version
Client:
 Version:           20.10.12
 API version:       1.41
 Go version:        go1.17.5
 Git commit:        e91ed5707e
 Built:             Mon Dec 13 22:31:40 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          20.10.12
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.5
  Git commit:       459d0dfbbb
  Built:            Mon Dec 13 22:30:43 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.5.8
  GitCommit:        1e5ef943eb76627a6d3b6de8cd1ef6537f393a71.m
 runc:
  Version:          1.0.3
  GitCommit:        v1.0.3-0-gf46b6ba2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0