决战萨斯城,王牌梦魇,遮天之月帝
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
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!!
点击进行留言回复
相关文章:
-
-
-
-
-
-
-
-
-
-
处理器及其调度
处理器及其调度 1. 处理器 用于执行指令对数据进行加工处理。 具有的机制: 寄存器:寄存器有多种,主要的作用是构成处理器的工作现场 指令系统 非特权指...
[阅读全文]
-
网友评论