天天看點

docker學習筆記001-docker 安裝方法介紹

docker Setup

docker推薦使用version 1.13或者更高版本

docker 包含社群版和企業版 Community Edition (CE) and Enterprise Edition (EE).

支援多種平台

DeskTop:Mac、Windows

Cloud:Amazon 、Microsoft

Server:CentOs、OracleLinux、Ubuntu、Debian、Red Hat Enterprise Linux

安裝docker CE

啟動一個docker CE,需要确認前置要求,再執行安裝操作。EE版本是收費版本不做介紹

前置要求

OS要求、老版本要求:docker docker-engine檢視

安裝

Install required packages. <code>yum-utils</code> provides the <code>yum-config-manager</code> utility, and <code>device-mapper-persistent-data</code> and <code>lvm2</code> are required by the <code>devicemapper</code> storage driver.

Use the following command to set up the stable repository. You always need the stable repository, even if you want to install builds from the edge or test repositories as well.

Optional: Enable the edge and test repositories. These repositories are included in the <code>docker.repo</code> file above but are disabled by default. You can enable them alongside the stable repository.

You can disable the edge or test repository by running the <code>yum-config-manager</code> command with the <code>--disable</code>flag. To re-enable it, use the <code>--enable</code> flag. The following command disables the edge repository.

Install the latest version of Docker CE, or go to the next step to install a specific version.

Start Docker.

Verify that <code>docker</code> is installed correctly by running the <code>hello-world</code> image.

2.下載下傳rpm,手動安裝

從這下載下傳

Install Docker CE, changing the path below to the path where you downloaded the Docker package.

<code></code>

3.scripts腳本自動安裝

4.解除安裝

Uninstall the Docker package:

Images, containers, volumes, or customized configuration files on your host are not automatically removed. To delete all images, containers, and volumes:

You must delete any edited configuration files manually.

繼續閱讀