Podman으로 Adminer 시작
Fedora CoreOS 31.20200113.3.1
Podman 1.7.0
Podman Compose 0.1.5
Adminer 4.7.6
MariaDB 10.4.12
차리다
$ sudo sed -i --follow-symlinks 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/sysconfig/selinux
$ sudo reboot
$ sudo rpm-ostree install python3 -r
$ sudo pip3 install podman-compose
$ mkdir -p ~/.local/bin
$ curl -o ~/.local/bin/podman-compose https://raw.githubusercontent.com/containers/podman-compose/devel/podman_compose.py
$ chmod +x ~/.local/bin/podman-compose
$ cd
$ mkdir -p dkwork/adminer
$ cd dkwork/adminer
$ mkdir -p mariadb/data
$ chmod 777 mariadb/data
서류docker-compose.yml
version: '3.7'
services:
adminer:
# container_nameをadminerにしたら
# Error: name adminer is in use: container already exists
# のエラーになったので別名にしています。
container_name: adminer1
image: adminer:4.7.6
restart: always
ports:
- 8080:8080
depends_on:
- db
db:
container_name: mariadb
image: mariadb:10.4.12
restart: always
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=sample
- MYSQL_USER=user
- MYSQL_PASSWORD=pass
volumes:
- ./mariadb/data:/var/lib/mysql
실행$ podman-compose up -d
$ podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a80a97d42396 docker.io/library/adminer:4.7.6 php -S [::]:8080 ... 7 seconds ago Up 6 seconds ago 0.0.0.0:8080->8080/tcp adminer1
a507d52a1d84 docker.io/library/mariadb:10.4.12 mysqld 14 seconds ago Up 13 seconds ago 0.0.0.0:8080->8080/tcp mariadb
Reference
이 문제에 관하여(Podman으로 Adminer 시작), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/rururu_kenken/items/e9437d49a1f59913c37f텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)