How to deploy docker on linux
#How to deploy docker on linux?
Docker’s three core concepts: image, container, warehouse
Image: a mirror similar to a virtual machine, which is an installation file in common parlance.
Container: Similar to a lightweight sandbox, the container creates an application running instance from the image.
It can be started, started, stopped, and deleted, and these containers are isolated from each other. , mutually invisible.
Warehouse: Similar to a code warehouse, it is a place where Docker stores image files centrally.
A brief introduction to installing Docker on CentOS.
Preconditions:
64-bit 系统 kernel 3.10+
1. Check the kernel version, and the returned value is greater than 3.10.
$ uname -r
2. Log in to the terminal using a user with sudo or root privileges.
3. Make sure yum is the latest
$ yum update
4.Add yum repository
tee /etc/yum.repos.d/docker.repo <<-'EOF' [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF
5.Install Docker
$ yum install -y docker-engine
After the installation is successful, use the docker version command to check whether the installation is successful. After the installation is successful------as shown below
6. Start docker
$systemctl start docker.service
7. Verify whether the installation is successful (there are two parts, client and service, indicating that the docker installation and startup are successful)
Use the docker version command to check
8 .Set up auto-start at boot
$ sudo systemctl enable docker
Recommended: "docker tutorial"
The above is the detailed content of How to deploy docker on linux. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











The five basic components of the Linux system are: 1. Kernel, 2. System library, 3. System utilities, 4. Graphical user interface, 5. Applications. The kernel manages hardware resources, the system library provides precompiled functions, system utilities are used for system management, the GUI provides visual interaction, and applications use these components to implement functions.

To view the Git repository address, perform the following steps: 1. Open the command line and navigate to the repository directory; 2. Run the "git remote -v" command; 3. View the repository name in the output and its corresponding address.

There are six ways to run code in Sublime: through hotkeys, menus, build systems, command lines, set default build systems, and custom build commands, and run individual files/projects by right-clicking on projects/files. The build system availability depends on the installation of Sublime Text.

Although Notepad cannot run Java code directly, it can be achieved by using other tools: using the command line compiler (javac) to generate a bytecode file (filename.class). Use the Java interpreter (java) to interpret bytecode, execute the code, and output the result.

To install Laravel, follow these steps in sequence: Install Composer (for macOS/Linux and Windows) Install Laravel Installer Create a new project Start Service Access Application (URL: http://127.0.0.1:8000) Set up the database connection (if required)

Installing Git software includes the following steps: Download the installation package and run the installation package to verify the installation configuration Git installation Git Bash (Windows only)

How to run Python scripts in Sublime Text: Install Python interpreter configuration Interpreter path in Sublime Text Press Ctrl B (Windows/Linux) or Cmd B (macOS) to run the script If an interactive console is required, press Ctrl \ (Windows/Linux) or Cmd \ (macOS)

Sublime Text provides shortcuts to improve development efficiency, including commonly used (save, copy, cut, etc.), editing (indentation, formatting, etc.), navigation (project panel, file browsing, etc.), and finding and replacing shortcuts. Proficiency in using these shortcut keys can significantly improve Sublime's efficiency.
