In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to install docker using binaries under Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. Download the binary file https://download.docker.com/linux/static/stable/x86_64/docker-18.03.1-ce.tgz2, extract the binary file tar xzvf docker-18.03.1-ce.tgz3, and copy the binary file to / usr/bin directory cp docker/* / usr/bin/4 Check if docker versionClient:Version: 18.03.1-ceAPI version: 1.37Go version: go1.9.2Git commit: 9ee9f40Built: Thu Apr 26 07:12:25 2018OS/Arch: linux/amd64Experimental: falseOrchestrator: swarmServer:Engine:Version: 18.03.1-ceAPI version: 1.37 (minimum version 1.12) Go version: go1.9.5Git commit: 9ee9f40Built: Thu Apr 26 07:23:03 2018OS/Arch: linux/amd64Experimental: false5 Configure the docker.service file vi / usr/lib/systemd/system/ docker.service[ Unit] Description=Docker Application Container EngineDocumentation= https://docs.docker.comAfter=network-online.target firewalld.serviceWants=network- online.target[ Service] Type=notifyExecStart=/usr/bin/dockerdExecReload=/bin/kill-s HUP $MAINPIDLimitNOFILE=infinityLimitNPROC=infinityTimeoutStartSec=0Delegate=yesKillMode=processRestart=on-failureStartLimitBurst=3StartLimitInterval=60s [Install] WantedBy=multi-user.target6, start the dockerd service process systemctl daemon-reloadsystemctl start docker.service7, and verify # ps aux | grep dockerroot 2262 0.1 4.4 472948 44944? Ssl 16:38 0:00 / usr/bin/dockerdroot 2266 0.2 1.3 277032 13540? Ssl 16:38 0:01 docker-containerd-- config / var/run/docker/containerd/containerd.tomlroot 2895 0.0 112660 972 pts/0 S + 16:48 grep-- color=auto docker# docker run hello-worldHello from docking this message shows that your installation appears to be working correctly.To generate this message, Docker took the following steps:1. The Docker client contacted the Docker daemon.2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs theexecutable that produces the output you are currently reading.4. The Docker daemon streamed that output to the Docker client, which sent itto your terminal.To try something more ambitious, you can run an Ubuntu container with:$ docker run-it ubuntu bashShare images, automate workflows, and more with a free Docker ID: https://hub.docker.com/For more examples and ideas, visit: https://docs.docker.com/engine/userguide/ Thank you for reading! This is the end of this article on "how to install docker using binaries under Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.