search
HomeOperation and MaintenanceCentOSHow to start docker in centos8

How to start docker in centos8

Mar 31, 2020 pm 02:59 PM
centos8docker

How to start docker in centos8

How to start docker in centos8:

After installing docker in centos8, directly use the systemctl start docker command to start docker.

Steps to install docker on centos8:

1. Download docker-ce repo

curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo

2. Install dependencies (this is a key step compared to centos7)

yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm

3. Install docker-ce

yum install docker-ce

Recommended tutorial: centos tutorial

The above is the detailed content of How to start docker in centos8. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How to install Samba on CentOSHow to install Samba on CentOSJul 24, 2025 am 03:24 AM

Update the system: Use sudodnfupdate-y (CentOS8/Stream) or sudoyumupdate-y (CentOS7) to ensure the system is up to date; 2. Install Samba: Run sudodnfininstallsambasamba-commonsamba-client-y (or yum command) to install core components; 3. Configure sharing: Backup and edit /etc/samba/smb.conf, and add basic sharing settings such as [shared]path=/srv/samba/shared; 4. Set directory permissions: Create a shared directory and set chmod0755, chownno

How to restart the network service in CentOS?How to restart the network service in CentOS?Jul 24, 2025 am 02:11 AM

To restart network services in CentOS, you must first confirm the network management method used by the system. 1. Use the ps-ef|grepNetworkManager command to determine whether it is a NetworkManager or a traditional network service; 2. If you use a new version of CentOS (such as CentOS7 or Stream), it is recommended to restart the network service through sudosystemctlrestartNetworkManager or sudosystemctlrestartnetwork; 3. You can use nmcliconnectionreload to reload the configuration without interrupting the service, or execute s for specific connections.

How to install Nginx on CentOSHow to install Nginx on CentOSJul 24, 2025 am 02:01 AM

Update the system: Run sudoyumupdate-y to ensure the system is up to date; 2. Install EPEL source: execute sudoyuminstalllepel-release-y to obtain the Nginx package; 3. Install Nginx: Use sudoyuminstallnginx-y to install the service; 4. Start and enable Nginx: Set up the power-on startup through sudosystemctlstartnginx and sudosystemctlenablenginx, and use sudosystemctlstatusnginx to confirm the running status; 5. Configure the firewall: If firewalld is enabled, run sudofir

How to partition a new hard drive with fdisk or parted?How to partition a new hard drive with fdisk or parted?Jul 24, 2025 am 12:49 AM

When partitioning new hard disks, fdisk is suitable for MBR partition tables, and parted is recommended for GPT partition tables; when using fdisk, first use lsblk or fdisk-l to identify the hard disk device, run sudofdisk/dev/sdX to create the main/extended partition, set the start and end sectors and enter w to save and refresh the partition table and then format it; when using parted, run sudoparted/dev/sdX to set it to gpt partition table, use mkpart to create partitions to specify GB or percentage, and format it after exiting; pay attention to partition alignment, type settings and FAT32ESP partition required for UEFI startup.

How to check the status of FirewallD and its rules?How to check the status of FirewallD and its rules?Jul 23, 2025 am 03:18 AM

To view the status and rules of FirewallD, you can follow the following steps: 1. Use systemctlstatusfirewalld to confirm whether the service is running. If it is not running, you can start sudosystemctlstartfirewalld and set the power on and start it up with enable; 2. View the current area through firewall-cmd-get-active-zones, and use --get-zones to view all areas; 3. Execute firewall-cmd-list-all to view all rules in the current area. Add the --zone parameter to specify the area, and use --list-rich-rules to view rich

How to filter journalctl output by a specific service or time?How to filter journalctl output by a specific service or time?Jul 23, 2025 am 03:16 AM

To filter journalctl logs, view them by service or time range. 1. Filter by service name: use journalctl-u, such as journalctl-unginx.service; if you are not sure of service name, you can find systemctllist-units|grep. 2. Filter by time range: use --since and --until to specify the time, such as journalctl--since"1hourago" or journalctl--since"2025-04-0510:30:00"--until"2025

How to reset root password in CentOSHow to reset root password in CentOSJul 23, 2025 am 02:16 AM

Reboot and enter the GRUB menu, press e to edit the startup item; 2. Add init=/bin/bash or rd.break at the end of linux or linux16 line; 3. If you use rd.break, you need to chroot/sysroot first, then mount-oremount,rw/; 4. Execute passwdroot to set a new password; 5. If SELinux is enabled, run touch/.autorelabel; 6. Execute reboot-f to restart to take effect. This method is suitable for CentOS7 and above and requires physical or console access.

How to create a systemd service fileHow to create a systemd service fileJul 23, 2025 am 02:01 AM

Create a service file: Create a .myapp.service file in /etc/systemd/system/, set the [Unit], [Service], [Install] sections and configure key parameters such as Description, ExecStart (using absolute path), User, Restart, etc.; 2. Reload and enable the service: execute sudosystemctldaemon-reload, enable, and start to enable the service and set the power-on self-start; 3. Avoid common errors: do not use relative paths, do not run with root, ensure the script permissions are correct, must be overloaded after modification, and finally use sudosystemct

See all articles

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.