Vultr AlmaLinux docker install
Updated on
목차:
기존의 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
mkdir -p ~/.docker/cli-plugins/ curl -SL https://github.com/docker/compose/releases/download/v2.9.0/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose chmod +x ~/.docker/cli-plugins/docker-compose sudo ln -s ~/.docker/cli-plugins/docker-compose /usr/bin/docker-compose
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