Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ How to upgrade Docker 1.6 on Fedora / CentOS     - Ubuntu install ruby (Linux)

- Install Gnome Flashback Classic Desktop on Ubuntu 14.10 / Mint 7 (Linux)

- Oracle 11g partition maintenance (Nice) - Truncating And Partitions (Database)

- Configure shared library PCRE (Linux)

- LVM management parameters commonly used commands explained in detail (Linux)

- The user of fedora is not in the sudoers file method to solve (Linux)

- Linux cron job (crontab) Examples (Linux)

- Analysis of MySQL High Availability (Database)

- Via Twitter how open source library to be used anywhere Emoji emoticons (Linux)

- Java memory model subclasses (Programming)

- Spring inject a type of object to enumerate (Programming)

- Oracle 12CIN-memory in table spaces (Database)

- Linux Log Clear (Linux)

- Install and manage Java under mac (Linux)

- Python 3 for instructions encoded string conversion (Programming)

- [SHELL] MySQL primary recovery solution from + Keepalived online (Server)

- Distributed Firewall Design on Linux platform (Linux)

- xCAT deployment (Linux)

- Under CentOS using yum command to install the Task Scheduler crontab (Linux)

- Install Git on CentOS (Linux)

  How to upgrade Docker 1.6 on Fedora / CentOS
  Add Date : 2018-11-21      
  Docker, a popular open-source container platform that packages software, has a new 1.6 release and adds many new features. This version of the main update Docker Registry, Engine, Swarm, Compose and Machine and so on. This release is designed to improve performance and improve the experience for developers and system administrators. Let's take a quick look at what's new.

Docker Registry (2.0) is a push Docker image for storage and sharing of services, because of the experience under the loading experience experienced architectural changes. It is still backward compatible. The Docker Registry programming language is now changed from Python to Google's Go language to improve performance. When combined with Docker Engine 1.6, the ability to pull mirrors is faster. The earlier mirrors were queued, and now are parallel.

Docker Engine (1.6) compared to previous versions have greatly improved. Containers and mirrored labels are currently supported. With tags, you can attach user-defined metadata to mirrors and containers, while mirrors and containers can be used by other tools in turn. The label is not visible to the running application and can be used to speed up the search for containers and mirrors.

The Windows version of the Docker client can connect to a remote Docker Engine running on Linux.

Docker currently supports the log-driven API, which allows us to send container logs to systems such as Syslog, or to third parties. This will benefit the system administrator.

Swarm (0.2) is a Docker cluster tool that can convert a Docker host pool to a virtual host. In the new feature, the container is even placed on the available nodes. Try to support the full Docker API by adding more Docker commands. In the future, clustering will be possible with third-party drivers.

Compose (1.2) is a Docker tool to define and run complex applications, has also been upgraded. In the new version, you can create multiple sub-files, rather than using a structure of the file description of a multi-container applications.

With Machine (0.2), we can easily build Docker hosts on local computers, clouds, and data centers. The new release provides developers with a relatively clean driver interface for writing drivers. The machine centrally controls the supply, not each individual driver. A new command has been added that can be used to generate TLS certificates for the host to improve security.

Upgrading on Fedora / CentOS

In this section, we will learn how to upgrade an existing docker to the latest version on Fedora and CentOS. Note that the current Docker only runs on 64-bit architectures, Fedora and CentOS both originate from RedHat, and the commands are used almost the same, except that the Docker package is called "docker-io" in Fedora 20 and CentOS 6.5.

If your system does not have a Docker installed before, use the following command to install:

"Yum install docker-io" - on Fedora20 / CentOS6.5

"Yum install docker" - on Fedora21 / CentOS7
It is a good idea to back up the docker image and container volume before upgrading.

Refer to "Bringing the File System to a tar Package" and "Volume Backup, Recovery, or Migration" for more information.

At present, the test system is installed Docker1.5. The sample output display is from a Fedora20 system.

Verify the version of the Docker that is currently installed on your system

[Root @ TestNode1 ~] #sudo docker -v
Docker version 1.5.0, build a8a31ef / 1.5.0
If the Docker is running, stop.

[Root @ TestNode1 ~] # sudo systemctl stop docker
Use yum update to upgrade to the latest version, but when writing this article, the warehouse is not the latest version (1.6), so you need to use the binary upgrade method.

[Root @ TestNode1 ~] #sudo yum -y update docker-io
No packages marked for update
[Root @ TestNode1 ~] #sudo wget https://get.docker.com/builds/Linux/x86_64/docker-latest -O / usr / bin / docker
--2015-04-1913: 40: 48-https://get.docker.com/builds/Linux/x86_64/docker-latest
Resolvingget.docker.com (get.docker.com) ...
Connecting to get.docker.com (get.docker.com) | |: 443 ... connected.
HTTP request sent, awaiting response ... 200 OK
Length: 15443598 (15M) [binary / octet-stream]
Saving to: / usr / bin / docker
100% [======================================>] 15,443,5988.72MB / s in1 .7s
2015-04-1913: 40: 50 (8.72 MB / s) - / usr / bin / docker saved
Check the updated version

[Root @ TestNode1 ~] #sudo docker -v
Docker version 1.6.0, build 4749651
Restart the docker service

[Root @ TestNode1 ~] # sudo systemctl start docker
Verify that the Docker is running

[Root @ TestNode1 ~] # docker images
Fedora latest 834629358fe23 months ago 241.3 MB
[Root @ TestNode1 ~] # docker run fedora / bin / echo HelloWorld
Note that when you install the Docker on CentOS, when you try to start the Docker service, you may get the wrong message, as shown below:

Docker.service -DockerApplicationContainerEngine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled)
Active: failed (Result: exit-code) since Mon2015-04-2003: 24: 24 EDT; 6h ago
Docs: http://docs.docker.com
Process: 21069ExecStart = / usr / bin / docker -d $ OPTIONS $ DOCKER_STORAGE_OPTIONS $ DOCKER_NETWORK_OPTIONS $ ADD_REGISTRY $ BLOCK_REGISTRY $ INSECURE_REGISTRY (code = exited, status = 127)
Main PID: 21069 (code = exited, status = 127)
Apr2003: 24: 24 centos7 systemd [1]: StartingDockerApplicationContainer E .....
Apr2003: 24: 24 centos7 docker [21069]: time = "2015-04-20T03: 24: 24-04: 00" lev ...) "
Apr 20 03:24:24 centos7 docker [21069]: time = "2015-04-20T03: 24: 24-04: 00" lev ...) "
Apr2003: 24: 24 centos7 docker [21069]: / usr / bin / docker: relocation error: / ... ce
Apr2003: 24: 24 centos7 systemd [1]: docker.service: main process exited, co ... / a
Apr2003: 24: 24 centos7 systemd [1]: Failed to start DockerApplicationCont ... e.
Apr2003: 24: 24 centos7 systemd [1]: Unit docker.service entered failed state.
This is a known bug (https://bugzilla.redhat.com/show_bug.cgi?id=1207839) that needs to be upgraded to the latest device map.

[Root @ centos7 ~] # rpm-qa device-mapper
[Root @ centos7 ~] # yum update device-mapper
[Root @ centos7 ~] # rpm-qa device-mapper
[Root @ centos7 ~] # systemctl start docker

to sum up

Although docker technology is not long, but soon became very popular. It makes life easier for the developer, and the operations team can quickly create and deploy applications independently. Through the company's release, Docker's rapid updates, product quality improvement, to meet user needs, the future for the Docker is a bright future.
- How to install CentOS CentOS web page (Server)
- Installation of network monitoring ntopng under CentOS 6.4 (Linux)
- How to enable curl command HTTP2 support (Linux)
- MongoDB 3.0 New Features (Database)
- Kali Linux virtualbox rc = Error 1908 workaround (Linux)
- Easily solve the MySQL database connection error too many (Database)
- Install Ubuntu Software Center App Grid (Linux)
- C ++ 11 feature: decltype keywords (Programming)
- Graphing tool: Gnuplot (Linux)
- ThinkPad X201i installation notes Debian 7.5 (Linux)
- Echo Command Examples (Linux)
- Installation Elementary OS Freya to do some settings (Linux)
- Sublime Text Add instructions to insert the current time zone (Linux)
- Using Oracle for Oracle GoldenGate to achieve a one-way data synchronization (Database)
- Linux PXE unattended installation PXE-E32: TFTP OPen timeout the solution (Linux)
- Start Linux ISO image directly from the hard disk (Linux)
- You know the difference between URL, URI and URN among you (Linux)
- How to use Monit to deploy a server to monitor the system (Server)
- Examples of RAID levels and achieve Operational Details (Linux)
- Java enum use (Programming)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.