Vultr AlmaLinux docker install

1018

기존의 podman 삭제하기

dnf erase podman buildah
sudo dnf update

docker install 하기

sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
sudo dnf repolist -v
sudo dnf update
dnf install -y docker-ce docker-ce-cli containerd.io
systemctl enable --now docker
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

docker-compose --version
systemctl daemon-reload
systemctl restart docker
docker info

설치 완료.

메모리 에러 날 경우

스왑생성
free -m

/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1

스왑삭제
swapoff /var/swap.1
rm -f /var/swap.1

답글 남기기

이메일 주소는 공개되지 않습니다.