欧拉如何安装docker能否给个教程
配置好openEuler的repo源,使用yum安装即可
yum install docker -y
最简单的方式是通过命令 dnf install docker 安装。
22.03 sp3的源docker版本为 18.09.0
docker最新版安装方式参考docker官方文档: Install Docker Engine from binaries | Docker Docs
Install static binaries
- Download the static binary archive. Go to Index of linux/static/stable/, choose your hardware platform, and download the
.tgz
file relating to the version of Docker Engine you want to install. - Extract the archive using the
tar
utility. Thedockerd
anddocker
binaries are extracted.
$ tar xzvf /path/to/FILE.tar.gz
- Optional: Move the binaries to a directory on your executable path, such as
/usr/bin/
. If you skip this step, you must provide the path to the executable when you invokedocker
ordockerd
commands.
$ sudo cp docker/* /usr/bin/
- Start the Docker daemon:
$ sudo dockerd &
If you need to start the daemon with additional options, modify the above command accordingly or create and edit the file /etc/docker/daemon.json
to add the custom configuration options.
5. Verify that Docker is installed correctly by running the hello-world
image.
$ sudo docker run hello-world
This command downloads a test image and runs it in a container. When the container runs, it prints a message and exits.
You have now successfully installed and started Docker Engine.