CentOS8にdockerをdnfでインストールする

CentOS8にdockerをdnfでインストールする

2020-04-02

docker-ceのリポジトリを追加します。

そのままインストールしようとするとエラーになるので、container.ioだけ別で

入れ終わったらdockerをインストール

dnf install docker-ce docker-ce-cli

インストールし終わったらバージョンを確認

$ docker -v
Docker version 19.03.8, build afacb8b

最後にdockerを立ち上げておく

systemctl enable docker
systemctl start docker