在设置了新鲜Ubuntu 16树莓Pi机。使用Ubuntu 中的图像。
然后用snap安装Docker:
snap install docker
我无法使用码头,因为我得到了一个错误:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
码头服务状态不活动(已死亡):
sudo systemctl status snap.docker.dockerd.service
snap.docker.dockerd.service - Service for
我犯了通过Snap安装Docker的错误...当我意识到snap没有权限在我的工作目录(在不同的分区上)中运行时,我就删除了它。现在我不能使用docker,因为我已经通过apt-get安装了它。
请帮帮忙。
我做过sudo snap remove docker,但是当我sudo apt install docker并通过docker运行时,我得到了bash: /snap/bin/docker: No such file or directory
我在带有snap的Ubuntu 18.04.2上安装了docker。 当我尝试启动docker时,它失败了,并显示以下错误日志。 2020-07-16T23:49:14Z docker.dockerd[932]: failed to start containerd: timeout waiting for containerd to start
2020-07-16T23:49:14Z systemd[1]: snap.docker.dockerd.service: Main process exited, code=exited, status=1/FAILURE
2020-07-16T
我要在一个全新的Ubuntu 18.04上建立码头。重新启动之后,在运行sudo service docker restart之前,我无法让它工作
,下面是关于到底发生了什么的一步一步的说明:
开机计算机
sudo systemctl is-active docker返回active
sudo service docker status返回active (running)
此时,我希望docker info能够工作,但是它返回Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker dae
只需遵循:因为我的对接器是通过snap安装的,所以我编辑:
sudo vi /etc/docker/daemon.json
sudo vi /var/snap/docker/current/config/daemon.json
sudo vi /var/snap/docker/current/etc/docker/daemon.json
有什么建议吗?谢谢!
几个小时前我的系统崩溃后,我无法启动一些快照包。在我的系统崩溃之前一切都很好。当我设法让我的系统再次工作时,我就开始发生了。
例如,不和给了我这个错误:
ERROR: not connected to the gnome-3-28-1804 content interface.
停靠守护进程也不会启动:
$ snap logs docker
2021-05-10T09:34:02Z systemd[1]: Stopped Service for snap application docker.dockerd.
2021-05-10T09:34:02Z systemd[1]: Started S
在XEN主机中,有一个不能用lvremove删除的快照。
$ lvremove /dev/vg0/snap-tmp-vm06.docker-disk -fdv
DEGRADED MODE. Incomplete RAID LVs will be processed.
Using logical volume(s) on command line
Device dm-36 (253:36) appears to be mounted on /media/snapshots/tmp-vm06.docker-disk.
Logical volume vg0/snap-tmp-vm06.docker-
在Ubuntu20.04.1机器中,我安装了Docker (遵循docs.docker.com的正式文档),一切正常。
r$ docker -v
Docker version 19.03.13, build 4484c46d9d
但是当我输入错误的docker命令时,我得到了一个惊喜:
r$ doocker
Command 'doocker' not found, did you mean:
command 'docker' from snap docker (19.03.11)
command 'docker' from deb d
我在一个AWS EC2 t2.micro实例上运行Docker,在我运行sudo docker-compose build和sudo docker-compose up之后,我得到了这个错误:
Error processing tar file(exit status 1): write /usr/lib/x86_64-linux-gnu/libLLVM-7.so.1: no space left on device
我使用sudo docker system prune -a进行了清理;但是,错误仍然存在。
这是我运行df -h /var/lib/docker/后的数据
Filesystem
我最近已经开始使用Fedora工作站32,我需要在其中安装码头,我开始使用snap为它。安装与安装后的步骤进展顺利。但是当我试图运行时,码头管理单元会给出以下提示,
$ docker run hello-world
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
S
我正试图在我的Ubuntu20.04上安装对接器。尝试使用apt-get和snap安装对接器:
sudo apt-get install docker
输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
wmdocker
The following NEW packages will be installed:
docker wmdoc
举个例子:
$ sudo snap install kubectl --classic;
$ kubectl cluster-info dump;
The connection to the server localhost:8080 was refused - did you specify the right host or port?
$ ps -aux | grep kube;
$ lsb_release -a;
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
我在Ubuntu中通过snap安装了docker。它工作得很好,直到我重启。由于重启,它将不会保持启动。
所以我们手动启动守护进程:
$ sudo snap start docker
Started.
凉爽的。我开始注意到了。
$ docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
不是的。不,不是的。
这是怎么回事,我该怎
我在安装UbuntuServer18.10时通过snap安装了Docker。
如果我有一个引用docker命令的systemd单元文件,我会得到以下错误:
Executable "docker" not found in path "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
我不知道这条搜索路线是从哪里来的。它与/etc/环境中的内容不匹配。
在不修改单元文件的情况下,我是否可以全局更改systemd使用的搜索路径以包含/snap/bin?
在Ubuntu18.04系统上,只使用没
我是kubernetes的新手,我正在尝试在上面部署一个elasticsearch。目前,我对elasticsearch所需的文件描述符和docker所允许的文件描述符的数量有问题。
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
为了解决这个问题,我尝试了三种不同的方法:
方法1
从docker文档中,dockerd应该使用系统值作为默认值。
用/etc/security/limits.conf设置* - nofile 65536
重
我用的是Ubuntu 16.04我想把码头设置为一项服务。我已经安装了码头..。
davea@blockshare_srvr:~$ which docker
/snap/bin/docker
davea@blockshare_srvr:~$ /snap/bin/docker -v
Docker version 18.06.1-ce, build e68fc7a
但是,当我试图检查它的状态时,我会得到以下错误
davea@blockshare_srvr:~$ sudo systemctl status docker
Unit docker.service could not be found.
我正在测试我的服务器的裸金属恢复,这基本上启动了一组码头容器与我的服务。我从备份/etc/docker中恢复过来,在这里我保存了所有的配置和持久的卷。
然后我试着启动其中一个容器:
root@srv-backup:/etc/docker# docker-compose --verbose -f /etc/docker/docker-compose.d/20-registry.yaml up
compose.config.config.find: Using configuration files: /etc/docker/docker-compose.d/20-registry.yaml
ER
我在网上搜索,到处都找不到好的答案。当我运行docker-compose up、down或任何命令时,我都会遇到这个错误。 cannot update snap namespace: cannot create symlink in "/etc/docker": existing file in the way
snap-update-ns failed with code 1 它工作得很好,突然出现了这个问题。我的操作系统是Ubuntu 20.04 docker版本20.10.8 任何形式的帮助都是值得感谢的。