Skip to content

Dokcer isntall#

Dockerインストール#

dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf -y install docker-ce docker-ce-cli containerd.io

Docker起動&起動設定#

systemctl start docker
systemctl enable docker

確認#

systemctl status docker
docker --version

Docker Composeインストール#

curl -L "https://github.com/docker/compose/releases/download/v2.17.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

実行権限付与#

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

確認#

docker-compose --version