English 中文(简体)
Hugo 23.10 + Docker
原标题:Ubuntu 23.10 + Docker

I ve updated my Ubuntu to 23.10, and than I started to have several issues with docker. I did a full uninstall, and now I can t install it again. When I run sudo apt install docker-ce docker-ce-cli containerd.io I get error like

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package docker-ce-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  docker-buildx-plugin

E: Unable to locate package docker-ce
E: Package  docker-ce-cli  has no installation candidate
E: Unable to locate package containerd.io
E: Couldn t find any package by glob  containerd.io 

I checked the official Docker page (to late, of course..) and saw this: To install Docker Engine, you need the 64-bit version of one of these Ubuntu versions:

  • Ubuntu Lunar 23.04
  • Ubuntu Kinetic 22.10
  • Ubuntu Jammy 22.04 (LTS)
  • Ubuntu Focal 20.04 (LTS)
  • Ubuntu Bionic 18.04 (LTS)

So now I have an issue. Anyone has any idea on what to do? I ve installed docker via snap, but than I get issue like permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: when running docker-compose up --build.

我也试图安装多克式 desktop,没有灯塔,我发现了一个错误,称“无法安装 do器-dfesktop: 以下一揽子计划没有满足需要:”。 没有列出包裹。

Anyone had simmilar issue, knows how to tackle this?

问题回答

因此,我现在有一个问题。 没有人会想做什么? 我通过 s子安装了 do器,但我却在试图把Docker daemon的袖珍连接起来时,没有获得许可。

TL;DR

sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

我有过这个问题,有几次有新装置,我通常在东戈里寻找问题,并担任同样的数字海洋哨所。

https://www.digitalocean.com/community/questions/how-to-fix-docker-got-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket

From what I understand it is because docker wants access to the sock that is owned by root. So you will get this error if you fail to prefixing docker with "sudo" each time you need run. If you create a docker group, when docker starts it will then create a sock accessible to those within that group.

对于高度安全和生产环境,或许可以读到官方的码头:

https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user

不能确定这是为了你工作,而是让你去做。

Docker PPA is not ready for 23.10 yet. I see only one package (containerd.io_1.6.24-1_amd64.deb) there. We need to ask docker s persons for this.

我已更新到23.10个,一米处于类似地位。 Docker hasn t Update their official repos to support 23.10 yet. 你们也许能够利用他们的传票达到23.04,但一切正确工作的可能性是空洞的。 在多克公司正式支持最近的乌班图之前,几天或数周内,有人对 do子进行na笑。

I also had the issue with permissions you are referencing. You have two options:

  1. use sudo all the time

  2. 添加用户以 do子组别,因为那套docs子是:

    sudo chmod 666 /var/run/docker.sock





相关问题
Add a changing icon to Ubuntu Panel

What would be the most simple way of adding and changing an icon in the Ubuntu (Gnome) Panel? I m looking for something as simple as shell scripting, but I m not restricted to that. Will write a ...

Configuring kernel

After create a new system call, how to update the kernel? I tried these lines, make-kpkg clean fakeroot make-kpkg -initrd -append-to-version=-custom kernel_image kernel_headers But Ubuntu asked me ...

save Exceptions to file in python

I want to save all following Exceptions in a file. The reason why I need this is because the IDLE for python 3.1.1 in Ubuntu raises an Exception at calltipps, but close to fast, that it isn t readble. ...

How can i monitor system statistics in kubuntu using Java?

i am doing a project related to configuration and memory analyzer for kubuntu. i want to display the system statistics information like CPU usage, RAM usage and proceses etc. graphically using an ...

How to pass "--external-locking" for mysqld in Ubuntu

I would like to start my mysql server with the --external-locking option. As mysqld is run by the /etc/init.d/mysql script ubuntu (karmic), I guess that s where I should set this "--external-locking" ...

"g++" and "c++" compiler

I just found on my Ubuntu, there are two different C++ compilers: /usr/bin/g++ and /usr/bin/c++. I am not familiar with the latter, but man c++ just jumps to the manpage of gcc. I wonder what is their ...

热门标签