aaP_haotian0624 Try the following steps:
Update package lists from repositories and "refresh" them to get information about the latest versions of packages and their dependencies.
sudo apt update
Install the required packages by executing the commands one by one
apt -y install ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
Update the package lists to have a new repository on the system. Execute the command:
sudo apt update
Install Docker
apt -y install docker-ce docker-ce-cli containerd.io
Start Docker and add it to autoloader
systemctl start docker
systemctl enable docker
After that we reboot the server and make sure that the message about the need to install Docker is gone and everything is now working and displayed. Now you can fully utilize Docker using all the features of aaPanel.
source: https://blog.mons.ws/?p=4481