일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- CentOS
- PostgreSQL
- haproxy
- 라떼판다
- 자작 NAS
- Packstack
- MySQL
- RHEL 7
- WireGuard
- Rocky Linux
- MariaDB
- Windows 10 Home
- Openstack Rocky
- 라떼판다 우분투
- nextcloud
- Kubernetes
- openstack
- podman
- 라떼판다 NAS
- LattePanda
- LattePanda NAS
- MSA
- RDP Wrap
- centos 7
- Rocky Linux 8
- RHEL 8
- ubuntu
- CentOS 8
- LattePanda Ubuntu
- RHEL
Archives
- Today
- Total
간마늘작업소
[Podman] 01.설치하기 본문
0.개요
- 테스트 환경
- CentOS 7.6
- Rocky Linux 8.4
- Podman을 선택한 이유
- https://naleejang.tistory.com/227
- Podman vs Docker - RedHat 계열 리눅스 운영체제에서는 Docker를 배제하고 Podman을 도입하는 추세.
- 어차피 Docker 명령어 대부분이 Podman에도 사용할 수 있음.
- 도입 목적이 NextCloud 서버 설치 때문이었는데, DB 관리하기가 빡세서 한 번 해봄.
- https://naleejang.tistory.com/227
1.설치하기
- CentOS 7.6
yum install podman
- Rocky Linux 8.4
dnf install podman
2.Podman Container 저장소 위치 변경
mkdir /data/podman
mkdir /data/podman/database
mkdir /data/podman/database/storage
mkdir /data/podman/tmp
mkdir /data/podman/tmp/storage
- Podman 기본 경로는 다음과 같음
/var/lib/containers/storage - 이를 /data/podman/database/storage로 변경할 것을 가정함.
vi /etc/containers/storage.conf
(전략)
# Primary Read/Write location of container storage
graphroot = "/data/podman/database/storage"
#graphroot = "/var/lib/containers/storage"
(후략)
- 저장
podman info
- graphroot 변경 확인
- SELinux를 활성화한 경우 추가 설정
semanage fcontext -l|grep "/var/lib/containers"
semanage fcontext -a -e /var/lib/containers /data/podman/database
restorecon -Rv /data/podman/database
semanage fcontext -l|grep "/var/lib/containers"
semanage fcontext -l|grep "/data/podman/database"
'Linux > 06.Podman, Docker' 카테고리의 다른 글
[Podman] 03.Podman Container를 systemd에 등록해서 관리하기 (0) | 2022.06.20 |
---|---|
[Podman] 02.Podman으로 docker-compose.yml 사용하기 (0) | 2022.06.20 |
Comments