In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Most people do not understand the knowledge points of this article "how to install docker in different operating systems", so the editor summarizes the following contents, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to install docker in different operating systems" article.
Supported platform
Docker already supports many Linux platforms, such as Ubuntu, Red Hat Enterprise Linux, Debian, CentOs, Fedora, Oracle Linux and so on. If you use a virtual environment, you can even run it in OS X and windows.
Conditions of installation
Docker currently runs only on computers with 64-bit CPU architecture (currently only x86x64, amd64).
Linux 3.8or later kernel. Versions prior to 3.8 can also run, but the results are different, and you are advised to upgrade when you encounter problems.
The kernel must support some storage drivers (strage drive) that are and, for example:
Device Manage
AUFS
Vfs
Btrfs
The default storage driver is usually Device
The kernel must support and enable cgroup and banespace functions
Install Docker in Ubuntu
Version support: Ubuntu 12.04 LTS and later 64-bit versions. But this does not mean that other Ubuntu or Debian can not be installed according to Docker, as long as there is proper kernel and necessary support for Docker, other versions can also be installed, but can not be officially supported, and BUG cannot be officially fixed.
Now assume that the Ubuntu 12.04 LTS 64-bit computer I installed is darknight.example.com.
Check the prerequisite kernel
Confirm that the Linux kernel can meet the requirements according to the installation. Query through the uname command.
$uname-a
The default kernel for Ubuntu 12.04.3 and above is 3.8.0 x86room64.
If you find a kernel other than version 3.8, you can upgrade it with apt-get:
$sudo apt-get update$ sudo apt-get install linux-headers-3.8.0-27-generic
Then update the Grub boot loader to load the new kernel:
$sudo update-grub
After the installation is complete, restart the host to enable the new 3.8 kernel:
$sudo reboot
After reboot, you can use uname-a to confirm that the new version of the kernel is running.
Check Device Mapper
Device Mapper is used here to store drivers last night. Linux kernels of version 2.6.9 and above have integrated Device Mapper and provide a way to map block devices to advanced virtual devices. Device Mapper supports the concept of Auto-thin configuration (thin-provisioning), which can store multiple virtual devices (layers in Docker images) in a file system. So it is very suitable to be the storage driver of Docker.
Ubuntu 12.04 is all installed, you can check it with the code:
$ls l / sys/class/misc/device-mapper
If the device-mapper message does not appear, you can load the dm_mod module:
$sudo modprobe dm_mod
Cgroup and namespaces have been integrated into the Linux kernel since version 2.6.
Install Docker
Install the latest version from the Docker source. To install the latest version of Docker, you first need to install apt-transport-https support and then install it by adding sources.
$sudo apt-get install apt-transport-https$ sudo apt-key adv-- keyserver hkp://keyserver.ubuntu.com:80-- recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 $sudo bash-c "echo deb https://get.docker.io/ubuntu docker main > / etc/apt/sources.list.d/docker.list" $sudo apt-get update$ sudo apt-get install lxc-docker
If it is an earlier version of the Ubuntu system, you need to update the kernel first.
$sudo apt-get update$ sudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring$ sudo reboot
Then repeat the above steps.
Start the Docker service after installation.
A netizen's suggestion in the $sudo service docker start comment:
Under ubuntu, the following script method is the most convenient to install, which comes from the official instructions of sameersbn/docker-gitlab:
Sudo apt-get purge docker.iocurl-s https://get.docker.io/ubuntu/ | sudo shsudo apt-get updatesudo apt-get install lxc-dockerOS X
Use the Boot2Docker tool.
Boot2Docker is a tiny virtual machine and a wrapper script (wrapper script) is provided to manage the virtual machine. Conditions for installing Boot2Docker:
VirtualBoxDocker client installs Boot2Docker
Go to GitHub to install, or download and install it on the official website. There is a video to learn on the official website.
Start Boot2Docker
Go to the Application folder of the system, find Boot2Docker and open it.
Test Boot2Docker
Test whether the Boot2Docker installer is running properly by connecting the native Docker client to the Boot2Docker virtual machine and running the Docker daemon
$docker info
The installation runs successfully when the Docker message is displayed.
Windows
Like OS X, it is installed with Boot2Docker. Official website, GitHub.
Two conditions are also required:
VirtualBoxDocker client
After downloading, run the script.
Test Boot2Docker
Also test with the following command:
$docker info
The installation runs successfully when the Docker message is displayed.
CentOS
For CentOS6, you can install Docker using the EPEL library, as follows
$sudo yum install http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm$ sudo yum install docker-ioCentOS7
Docker is already included in the CentOS-Extras library of CentOS7 system, so you can install it directly:
$sudo yum install docker
Start the Docker service after installation and have it load automatically when the system starts.
The above $sudo service docker start$ sudo chkconfig docker on is about the content of this article on "how to install docker in different operating systems". I believe we all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow 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.
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.