美文网首页
docker 二进制安装安装

docker 二进制安装安装

作者: suenism | 来源:发表于2020-01-03 22:18 被阅读0次

1 下载docker二进制包

#登录如下网址,下载相关二进制包
https://download.docker.com/linux/static/stable/

2 安装前提

64位安装包
linux内核>=3.4
iptables 版本>= 1.4
git版本>=1.7

设置selinux 为 disable

3 安装

1.Extract the archive using the tar utility. The dockerd and docker binaries are extracted.

$ tar xzvf /path/to/<FILE>.tar.gz

2.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 invoke docker or dockerd commands.

$ sudo cp docker/* /usr/bin/

3.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.
4.erify 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 an informational message and exits.

配置镜像加速

阿里云docker-hub
https://cr.console.aliyun.com/cn-hangzhou/mirrors

mkdir -p /etc/docker
touch /etc/docker/daemon.json
tee /etc/docker/daemon.json<<-'EOF'
{
 "registery-mirrors": ["https://cr.console.aliyun.com/cn-hangzhou/mirrors"]
}
EOF

相关文章

网友评论

      本文标题:docker 二进制安装安装

      本文链接:https://www.haomeiwen.com/subject/qdmtactx.html