Docker installation (Alibaba Cloud Server)Docker official centos installation tutorial Uninstall old versions $ sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine Install using repository Before you install Docker Engine for the first time on a new host, you need to set up the Docker repository. Afterwards, you can install and update Docker from the repository. Setting up the repository Install the $ sudo yum install -y yum-utils $ sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo Install Docker Engine Install the latest version of Docker Engine and containers $ sudo yum install docker-ce docker-ce-cli containerd.io Start Docker $ sudo systemctl start docker Verify that Docker Engine is installed correctly by running the $ sudo docker run hello-world Uninstall Docker Uninstall Docker Engine, CLI, and Containerd packages: $ sudo yum remove docker-ce docker-ce-cli containerd.io Images, containers, volumes, or custom configuration files on the host are not automatically deleted. To remove all images, containers, and volumes: $ sudo rm -rf /var/lib/docker You must manually delete any edited configuration files. Install Docker on CentOS 7 virtual machine
WorkaroundRun vi /etc/sysconfig/selinux and change the selinux attribute value to disabled. Then restart the system; docker started successfully! SELinux (Security-Enhanced Linux) is the implementation of mandatory access control by the National Security Agency (NSA). It is the most outstanding new security subsystem in the history of Linux. But we generally don't use it. Because it manages too many things, if you want to ensure security, you can use firewalls and other measures. SELinux has three states: enforcing (executing), permissive (not executing but generating a warning), disabled This is the end of this article about installing Alibaba Cloud Server with Docker and the pitfalls encountered in virtual machine installation. For more information about installing Alibaba Cloud Server with Docker, 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:
|
<<: The difference between Readonly and Disabled
>>: Detailed explanation of CSS BEM writing standards
Table of contents 1. this points to 2. Modify thi...
1. Demand The backend provides such data for the ...
1. Windows Server 2019 Installation Install Windo...
You can use the command: docker tag [image id] [n...
I have been researching Linux recently and tried ...
SQL implements addition, subtraction, multiplicat...
To back up multiple databases, you can use the fo...
Table of contents 1. Solution 2. MySQL character ...
Table of contents 1. Concept Memory management mo...
We better start paying attention, because HTML Po...
Table of contents 1. Problem scenario 2. Cause An...
Table of contents npm download step (1) Import (2...
What Beautiful HTML Code Looks Like How to write ...
1. Dynamic parameters Starting from 2.6.0, you ca...
Table of contents 1. Introduction 2. Simple epoll...