zzh@ZZHPC:~$ sudo snap info docker name: docker summary: Docker container runtime publisher: Canonical✓ store-url: https://snapcraft.io/docker contact: https://github.com/docker-snap/docker-snap/issues?q= license: Apache-2.0 AND GPL-2.0 AND MIT description: | Build and run container images with Docker. **Usage** * This build can only access files in the home directory. So Dockerfiles and all other files used in commands like `docker build`, `docker save` and `docker load` need to be in $HOME. * You can change the configuration of this build by modifying the files in `/var/snap/docker/current/`. * Additional certificates used by the Docker daemon to authenticate with registries need to be added in `/var/snap/docker/current/etc/docker/certs.d` (instead of `/etc/docker/certs.d`). This directory can be accessed by other snaps using the `docker-registry-certificates` content interface. **Running Docker as normal user** By default, Docker is only accessible with root privileges (`sudo`). If you want to use docker as a regular user, you need to add your user to the `docker` group. sudo addgroup --system docker sudo adduser $USER docker newgrp docker sudo snap disable docker sudo snap enable docker **Warning:** if you add your user to the `docker` group, it will have similar power as the `root` user. For details on how this impacts security in your system, see https://docs.docker.com/engine/security/#docker-daemon-attack-surface **Authors** This snap is built by Canonical based on source code published by Docker, Inc. It is not endorsed or published by Docker, Inc. Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries. Docker, Inc. and other parties may also have trademark rights in other terms used herein. snap-id: sLCsFAO8PKM5Z0fAKNszUOX0YASjQfeZ channels: latest/stable: 20.10.24 2023-05-25 (2893) 135MB - latest/candidate: 20.10.24 2023-05-25 (2893) 135MB - latest/beta: 20.10.24 2023-08-24 (2904) 135MB - latest/edge: 20.10.24 2023-08-23 (2904) 135MB - core18/stable: 20.10.17 2023-03-13 (2746) 146MB - core18/candidate: ↑ core18/beta: ↑ core18/edge: ↑
zzh@ZZHPC:~$ sudo apt info docker Package: docker Version: 1.5-2 Priority: optional Section: universe/x11 Origin: Ubuntu Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Original-Maintainer: Paul Tagliamonte <paultag@debian.org> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 9,216 B Depends: wmdocker Download-Size: 1,316 B APT-Sources: http://cn.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages Description: transitional package This is a transitional package for system tray docking application. It can safely be removed. zzh@ZZHPC:~$ sudo apt remove docker Reading package lists... Done Building dependency tree... Done Reading state information... Done Package 'docker' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律