Jump to content
View in the app

A better way to browse. Learn more.

乾坤堂社区

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Docker问题解决:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon runnin

Featured Replies

  • Administrators

在使用docker ps 或者 docker images的时候提示:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

原因分析:

从错误信息可以看到,可能是docker没有正常启动。

使用如下命令:

systemctl daemon-reload systemctl restart docker.service

执行完成之后,重新docker ps 就正常了。

扩展:docker 一键启动

一键启动所有docker 容器:docker start $(docker ps -a | awk '{ print $1}' | tail -n +2)

一键关闭所有docker 容器:docker stop $(docker ps -a | awk '{ print $1}' | tail -n +2)

一键删除所有docker 容器:docker rm $(docker ps -a | awk '{ print $1}' | tail -n +2)

一键删除所有docker 镜像: docker rmi $(docker images | awk '{print $3}' |tail -n +2)

成长就是不断打破并重建三观

  • Views 128
  • Created
  • Last Reply

Create an account or sign in to comment

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.