Ubuntu - snap info / apt info

发布时间 2023-09-13 10:10:43作者: ZhangZhihuiAAA

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.