Você pode verificar se o docker -ce foi instalado e o serviço está sendo executado. Às vezes, se você tentar várias instalações, ele pode gerar esse tipo de erro.
Em caso afirmativo, desinstale e tente instalar os seguintes passos de este tutorial -
Essencialmente, você executará os seguintes comandos -
-
instale as dependências primeiro
sudo apt install apt-transport-https ca-certificates curl software-properties-common
-
adicione a chave GPG do repositório oficial do Docker ao sistema:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
-
Adicione o repositório do Docker em sources.list.d às fontes do APT usando o comando abaixo
sudo add-apt-repository "deb [arch=amd64]
https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable edge"
-
verifique se você consegue instalar o Docker a partir do repositório do Docker
apt-cache policy docker-ce
-
Por fim, instale o pacote do Docker CE com o comando abaixo
sudo apt-get install -y docker-ce
Voila, você instalou o Docker-CE. você pode verificar a instalação, verificando a versão do docker-ce instalado
docker --version