How to install the latest version of Docker on CentOS 7

前端 未结 2 1421
傲寒
傲寒 2021-01-22 00:22

I am trying to have a modern docker.io version 1.5+ installed on a CentOS 7 64bit system.

The default docker.io that comes with the yum servers is 1.3.2, and this versio

2条回答
  •  广开言路
    2021-01-22 00:44

    Please see the official user guide on installing the latest version of Docker on CentOS

    At the very start it says: "While using a package is the recommended way of installing Docker, the above package might not be the current release version. If you need the latest version, you can install the binary directly."

    This tells you how to do that: https://docs.docker.com/installation/binaries/

    Basically:

    • check your dependencies
    • download the binary: wget https://get.docker.com/builds/Linux/x86_64/docker-latest -O docker
    • run the daemon: sudo ./docker -d &

    Now you're good to go.

提交回复
热议问题