sudo apt-get update
sudo apt-get install -y podman
git clone https://github.com/containers/podman.git
cd podman
make
sudo make install
echo "export PATH=$HOME/.local/bin:$PATH" >> ~/.bashrc
echo "export CONTAINER_USER=$USER" >> ~/.bashrc
source ~/.bashrc
sudo systemctl stop podman.service
sudo systemctl stop podman.socket
sudo systemctl disable podman.service
sudo systemctl disable podman.socket
systemctl --user start podman.service
systemctl --user start podman.token
systemctl --user enable podman.service
systemctl --user enable podman.token
$ podman pull nginx
Error: short-name "nginx" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"
/etc/containers/registries.conf에 아래와 같이 여러 레포지토리를 추가하는 방법 아니면
[registries.search]
registries = ['docker.io']
레포지토리 경로까지 적어주는 방법이 있다.
$ podman pull docker.io/library/nginx
만약 sudo를 이용하여 nginx 이미지를 당겼다고해도 ubuntu 계정에서 podman images
명령어를 실행하면 보이지 않는 것을 확인할 수 있다.