keywords: Docker, Common Issues Collection

slogan_image

Issues

Unable to find image latest locally

Error:

[root ~]# docker run -itd --name mysql-dev -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql
Unable to find image 'mysql:latest' locally
docker: Error response from daemon: pull access denied for mysql, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

or

[root ~]# docker pull mariadb:11.8.2
Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers\)

Reason:
The domain (docker.io) is polluted when users in China access Docker.

Solution:
Use a host that has ability (for example, a virtual network card that can access overseas servers) for accessing Docker IO domain to download image, then export it as an archive (.tar.gz), then upload to target host.

Local PC (e.g. Windows 11):

docker pull mariadb:latest
docker save -o E:/mariadb.tar.gz mariadb:latest

Linux:

docker load -i mariadb.tar.gz

战国战争史:济西之战(五国伐齐)
五国伐齐是指公元前284年,燕国将领乐毅统率燕、秦、赵、韩、魏五国联军及被其策反的楚军共同攻打齐国的一场战争。五国在短时间内攻下齐国70余城,直入齐国都城临淄(今山东省淄博市临淄区)。
五国伐齐对战国整体格局影响巨大,此前实力超群的齐国从此一蹶不振,秦、齐两强东西对峙的格局也转变为秦、赵两国的争锋。