您现在的位置是:网站首页>内容内容
简易的Docker版本升级方法_其它系统_操作系统_
2024-04-16 16:07:56 【512953070@qq.com】 413人已围观
简介 简易的Docker版本升级方法_其它系统_操作系统_
1、使用 apt-get
# Add the Docker repository key to your local keychain
复制代码
代码如下:sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# Add the Docker repository to your apt sources list.
复制代码
代码如下:sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
# update your sources list
复制代码
代码如下:sudo apt-get update
# install the latest
复制代码
代码如下:sudo apt-get install lxc-docker
2、手工安装
# kill the running docker daemon
复制代码
代码如下:killall docker
# get the latest binary
复制代码
代码如下:wget http://get.docker.io/builds/Linux/x86_64/docker-latest -O docker
# make it executable
复制代码
代码如下:chmod +x docker
# start the new version -d是指以守护进程的方式执行, & 指在后台执行
复制代码
代码如下:sudo ./docker -d &
升级的一次实际操作记录:
# docker ps 查看运行中的docker容器进程
复制代码
代码如下:[root@AY140716133600881bf5Z ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS S
2901c1a54ec1 csphere/registry-v2:latest "/bin/registry-start 2 days ago Up 37 hours 0.0.0.0:4
e6b677c7ea75 csphere/csphere:0.11.2 "/bin/csphere-init - 2 weeks ago Up 37 hours 8086/tcp,
ac72d59f36e1 csphere/csphere:0.11.2 "/bin/csphere-init - 2 weeks ago Up 37 hours
a12cf20d6e65 registry.wpython.com:5000/library/nginx:1.4.7 "/usr/bin/supervisor 2 weeks ago Up 37 hours 22/tcp, 0
1b926cc81862 registry.wpython.com:5000/library/php:5.6.9 "/usr/bin/supervisor 2 weeks ago Up 37 hours 22/tcp, 9
8e44f1761417 registry.wpython.com:5000/library/mysql:5.5.37 "/usr/bin/supervisor 2 weeks ago Up 37 hours 22/tcp, 3
# 停止docker容器进程
复制代码
代码如下:docker stop 2901c1a54ec1
......
......
......
# 停止docker服务
复制代码
代码如下:/etc/init.d/docker stop
# 下载最新的二进制文件
复制代码
代码如下:sudo wget https://get.docker.com/builds/Linux/x86_64/docker-latest -O /usr/bin/docker && chmod +x /usr/bin/docker
# 启动docker服务
复制代码
代码如下:/etc/init.d/docker start
# 查看docker版本
复制代码
代码如下:# docker version
Client version: 1.7.0
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 0baf609
OS/Arch (client): linux/amd64
Server version: 1.7.0
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 0baf609
OS/Arch (server): linux/amd64
热评
- 让流量倍增的SEO优化方法介绍_网站优化_网站运营_
- 勿入SEO误区 揭秘“百度权重”那点事_网站优化_网站运营_
- SEO技巧之如何优化网站能提高百度收录_网站优化_网站运营_
- 网站内链、外链的基本知识与优化技巧_网站优化_网站运营_
- 揭秘网络推广发外链有用吗?_网站优化_网站运营_
- 如何破解百度点击原理进行seo快速排名 SEO快速排名的方法 _网站优化_网站运营_
- 新站优化是内链关键还是外链重要 网站优化内链与外链的区别和作用_网站优化_网站运营_
- 淘宝seo搜索排名优化之788法则详解_网站优化_网站运营_
- 京东在数据挖掘方面对推荐技术的优化 _网站优化_网站运营_
- 新站如何快速提升百度索引量?快速提升百度索引量的方法_网站优化_网站运营_
点击排行
- 勿入SEO误区 揭秘“百度权重”那点事_网站优化_网站运营_
- SEO技巧之如何优化网站能提高百度收录_网站优化_网站运营_
- 网站内链、外链的基本知识与优化技巧_网站优化_网站运营_
- 揭秘网络推广发外链有用吗?_网站优化_网站运营_
- 如何破解百度点击原理进行seo快速排名 SEO快速排名的方法 _网站优化_网站运营_
- 新站优化是内链关键还是外链重要 网站优化内链与外链的区别和作用_网站优化_网站运营_
- 淘宝seo搜索排名优化之788法则详解_网站优化_网站运营_
- 京东在数据挖掘方面对推荐技术的优化 _网站优化_网站运营_
- 新站如何快速提升百度索引量?快速提升百度索引量的方法_网站优化_网站运营_
本栏推荐
-
勿入SEO误区 揭秘“百度权重”那点事_网站优化_网站运营_
-
SEO技巧之如何优化网站能提高百度收录_网站优化_网站运营_
-
网站内链、外链的基本知识与优化技巧_网站优化_网站运营_
-
揭秘网络推广发外链有用吗?_网站优化_网站运营_
-
如何破解百度点击原理进行seo快速排名 SEO快速排名的方法 _网站优化_网站运营_
-
新站优化是内链关键还是外链重要 网站优化内链与外链的区别和作用_网站优化_网站运营_
-
淘宝seo搜索排名优化之788法则详解_网站优化_网站运营_
-
京东在数据挖掘方面对推荐技术的优化 _网站优化_网站运营_
-
新站如何快速提升百度索引量?快速提升百度索引量的方法_网站优化_网站运营_