Problems and solutions for installing Docker on Alibaba Cloud

Problems and solutions for installing Docker on Alibaba Cloud

question

When installing Docker using Alibaba Cloud image, the following error occurs, as shown in the following figure:

Malformed entry 60 in list file /etc/apt/sources.list (Component)

Install Docker error

Solution

Note that the error message says that the format of line 60 of the /etc/apt/sources.list file is incorrect, so try commenting out this line . First open this file:

$ sudoedit /etc/apt/sources.list

Then use vim's syntax to enter the editing mode and find line 60.

deb [arch=amd64] https://download.docker.com/linux/ubuntu stable

Use # to comment out. Save and exit.
Update it again:

$ sudo apt-get update

You can see:

insert image description here

The modification is finished here.
Try the installation again:

$ sudo apt-get install docker-ce

It succeeded.

This is the end of this article about the error problems and solutions of installing docker on Alibaba Cloud images. For more information about installing docker on Alibaba Cloud images, 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:
  • How to install WSL2 Ubuntu20.04 on Windows 10 and set up the docker environment
  • Tutorial on installing Docker in Windows 10 subsystem Ubuntu (WSL) (with pictures and text)
  • Solve the problem of running hello-world after docker installation
  • Solution to the error when installing Docker on CentOS version
  • Solutions to Docker installation and error reporting issues under Windows 7
  • Ubuntu vps installs docker and reports an error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Problem solved
  • Installing Docker Desktop reports an error message: WSL 2 installation is incomplete (Solve the error message)

<<:  js realizes the dynamic loading of data by waterfall flow bottoming out

>>:  Native JS to implement hover drop-down menu

Recommend

Docker data volume container creation and usage analysis

A data volume container is a container specifical...

Browser compatibility summary of common CSS properties (recommended)

Why do we need to summarize the browser compatibi...

MySQL database operations and data types

Table of contents 1. Database Operation 1.1 Displ...

Example code for converting Mysql query result set into JSON data

Mysql converts query result set into JSON data Pr...

Using react-virtualized to implement a long list of images with dynamic height

Table of contents Problems encountered during dev...

HTML+CSS merge table border sample code

When we add borders to table and td tags, double ...

Detailed steps to install Anaconda on Linux (Ubuntu 18.04)

Anaconda is the most popular python data science ...

How to import Excel files into MySQL database

This article shares with you how to import Excel ...

Embedded transplant docker error problem (summary)

After a long period of transplantation and inform...

Summary of React's way of creating components

Table of contents 1. Create components using func...

Analyze how uniapp dynamically obtains the interface domain name

background The interface domain name is not hard-...

Detailed explanation of the Docker deployment tutorial for Jenkins beginners

This article deploys Jenkins+Maven+SVN+Tomcat thr...

MySQL Router implements MySQL read-write separation

Table of contents 1. Introduction 2. Configure My...

Summary of three ways to create new elements

First: via text/HTML var txt1="<h1>Tex...