Docker installation and configuration command code examples

Docker installation and configuration command code examples

Docker installation

Install dependency packages

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

Setting up Alibaba Cloud image source

sudo yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

Install Docker-CE

sudo yum install docker-ce

Start Docker

# Start automatically at boot sudo systemctl enable docker 
# Start the docker service sudo systemctl start docker

Operation Command

# 1. View the installed docker:
docker images
# 2. Uninstall docker:
sudo yum remove -y XXX
# 3. Delete the container image:
sudo rm -rf /var/lib/docker
# 4. Reinstall Docker
sudo yum install docker-ce
# 5. Docker running status docker ps -a

This is the end of this article about Docker installation and configuration command code examples. For more information about Docker installation and configuration commands, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Simple operation of installing vi command in docker container
  • How to install the latest version of docker using deepin apt command
  • Detailed explanation of the installation commands and usage of Docker and FastDFS
  • Summary of common Docker commands: installation, mirroring, and basic container operations
  • Detailed explanation of how to install Docker and operate commands under CentOS 7

<<:  CSS achieves a proportional display effect of an element with fixed height and width

>>:  MySQL database import and export data error solution example explanation

Recommend

How to deploy nginx with Docker and modify the configuration file

Deploy nginx with docker, it's so simple Just...

A brief analysis of MySQL's WriteSet parallel replication

【Historical Background】 I have been working as a ...

The neglected special effects of META tags (page transition effects)

Using js in web design can achieve many page effec...

Use of Linux watch command

1. Command Introduction The watch command execute...

The use of FrameLayout in six layouts

Preface In the last issue, we explained LinearLay...

Detailed explanation of MySQL database index

Table of contents 1. Introduction to MySQL Index ...

How to position the header at the top using CSS sticky layout

Application scenarios: One of the new requirement...

MySQL controls the number of attempts to enter incorrect passwords

1. How to monitor MySQL deadlocks in production e...

Detailed explanation of the loop form item example in Vue

Sometimes we may encounter such a requirement, th...

Detailed explanation of Vue's TodoList case

<template> <div id="root"> ...

Linux sftp command usage

Concept of SFTP sftp is the abbreviation of Secur...