0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

podman で docker-compose を実行する

Posted at

Moodle の bitnami.moodle:latest を起動できた時のメモ。
OSは、Fedora37 です。

$ sudo dnf install python3-pip
$ sudo pip3 install -U pip
$ sudo pip3 install docker-compose
$ sudo dnf install podman-plugins
$ sudo systemctl enable podman.socket
$ sudo export DOCKER_HOST=unix:/run/podman/podman.sock

以下を参考に、bitnami.moodle:latest イメージを起動する準備をする。
https://github.com/bitnami/containers/tree/main/bitnami/moodle

$ curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/moodle/docker-compose.yml > docker-compose.yml

一度立ち上げてみる。

$ docker-compose up -d

以下の設定が必要であることが判明したので、設定を追加。

# vim /etc/sysctl.conf
net.ipv4.ip_unprivileged_port_start=443
net.ipv4.ip_unprivileged_port_start=80

もう一度立ち上げてみる。

$ docker-compose up -d
Creating network "moodlebitnami_default" with the default driver
Creating moodlebitnami_mariadb_1 ... done
Creating moodlebitnami_moodle_1  ... done

確認

$ docker container ls
CONTAINER ID   IMAGE                  COMMAND                  CREATED          STATUS          PORTS                                                                            NAMES
b95063d365b3   bitnami/moodle:4       "/opt/bitnami/script…"   31 seconds ago   Up 30 seconds   0.0.0.0:80->8080/tcp, :::80->8080/tcp, 0.0.0.0:443->8443/tcp, :::443->8443/tcp   moodlebitnami_moodle_1
78b2fbc93046   bitnami/mariadb:10.6   "/opt/bitnami/script…"   32 seconds ago   Up 30 seconds   3306/tcp                                                                         moodlebitnami_mariadb_1

https://localhost
Moodle にログイン
user/bitnami

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?