Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy Docker in Ubuntu14.04

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Today, the editor will share with you the relevant knowledge about how to deploy Docker in Ubuntu14.04. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.

Docker is an open source application container engine that allows developers to package their applications and dependency packages into a portable container, publish them to any popular Linux machine, and virtualize them. Installation

Installed through the system's own package (may not be the latest version)

Sudo apt-get updatesudo apt-get install-y docker.io

Add GPG Key

Curl-fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add-

Use the following command to check that the information in GPG Key is correct

Sudo apt-key fingerprint 0EBFCD88

The information of GPG Key is as follows:

Pub 4096R/0EBFCD88 2017-02-22Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88uid Docker Release (CE deb) sub 4096R/F273FCD8 2017-02-22

Add source information

# write source information directly to / etc/apt/sources.list

Sudo add-apt-repository\ "deb [arch=amd64] https://download.docker.com/linux/ubuntu\ $(lsb_release-cs) stable"

OR

# create a source.list for docker separately

Sudo bash-c "deb [arch=amd64] https://download.docker.com/linux/ubuntu trusty stable > / etc/apt/sources.list.d/docker.list"

Update source information

Sudo apt-get update

Since there is an old docker source by default in the system, make sure that the source information of docker is correct and whether the new source is added successfully.

Apt-cache madison docker-ce

Whether the new source was added successfully

Installation

Sudo apt-get install docker-ce

Verify installation

Verify the installation using the following command:

Docker-v

Test docker run

Start the docker background process

Sudo service docker start

Verify that docker is installed successfully

Sudo docker run hello-world

This command downloads a test image and runs it in a container. When the container runs, it prints some information and exits.

Other scenarios on the docker_hello_world network:

Install Docker under Ubuntu

Sudo apt-key adv-keyserver hkp://p80.pool.sks-keyservers.net:80-recv-keys 58118E89F3A912897C070ADBF76221572C52609Dsudo bash-c "deb https://apt.dockerproject.org/repo ubuntu-trusty main > / etc/apt/sources.list.d/docker.list" sudo apt-get updatesudo apt-get install lxc-docker

Or install docker under Ubuntu14.04

Sudo apt-get install apt-transport-httpssudo apt-key adv-keyserver hkp://keyserver.ubuntu.com:80-recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9sudo bash-c "echo deb https://get.docker.io/ubuntu docker main > / etc/apt/sources.list.d/docker.list" sudo apt-get updatesudo apt-get install lxc-docker is all the content of this article "how to deploy Docker in Ubuntu14.04". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report