fs-mqtt

ailixia@raspberrypi:~ $ sudo su
root@raspberrypi:/home/ailixia# apt-get update
错误:1 http://deb.debian.org/debian bullseye InRelease                                                    
  暂时不能解析域名“deb.debian.org”
错误:2 http://security.debian.org/debian-security bullseye-security InRelease                             
  暂时不能解析域名“security.debian.org”
错误:3 http://archive.raspberrypi.org/debian bullseye InRelease                                           
  暂时不能解析域名“archive.raspberrypi.org”
错误:4 http://deb.debian.org/debian bullseye-updates InRelease                                            
  暂时不能解析域名“deb.debian.org”
正在读取软件包列表... 完成      
W: 无法下载 http://deb.debian.org/debian/dists/bullseye/InRelease  暂时不能解析域名“deb.debian.org”
W: 无法下载 http://security.debian.org/debian-security/dists/bullseye-security/InRelease  暂时不能解析域名“security.debian.org”
W: 无法下载 http://deb.debian.org/debian/dists/bullseye-updates/InRelease  暂时不能解析域名“deb.debian.org”
W: 无法下载 http://archive.raspberrypi.org/debian/dists/bullseye/InRelease  暂时不能解析域名“archive.raspberrypi.org”
W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
root@raspberrypi:/home/ailixia# apt-get update
错误:1 http://security.debian.org/debian-security bullseye-security InRelease                             
  暂时不能解析域名“security.debian.org”
错误:2 http://archive.raspberrypi.org/debian bullseye InRelease                                           
  暂时不能解析域名“archive.raspberrypi.org”
错误:3 http://deb.debian.org/debian bullseye InRelease                                                    
  暂时不能解析域名“deb.debian.org”
错误:4 http://deb.debian.org/debian bullseye-updates InRelease
  暂时不能解析域名“deb.debian.org”
正在读取软件包列表... 完成      
W: 无法下载 http://deb.debian.org/debian/dists/bullseye/InRelease  暂时不能解析域名“deb.debian.org”
W: 无法下载 http://security.debian.org/debian-security/dists/bullseye-security/InRelease  暂时不能解析域名“security.debian.org”
W: 无法下载 http://deb.debian.org/debian/dists/bullseye-updates/InRelease  暂时不能解析域名“deb.debian.org”
W: 无法下载 http://archive.raspberrypi.org/debian/dists/bullseye/InRelease  暂时不能解析域名“archive.raspberrypi.org”
W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
root@raspberrypi:/home/ailixia# apt-get update
命中:1 http://security.debian.org/debian-security bullseye-security InRelease
获取:2 http://deb.debian.org/debian bullseye InRelease [116 kB]
获取:3 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
获取:4 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
获取:5 http://deb.debian.org/debian bullseye/main arm64 Packages [7,957 kB]
获取:6 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages [307 kB]
获取:7 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [313 kB]
获取:8 http://deb.debian.org/debian bullseye/main armhf Packages [7,842 kB]                                                                                                                                                                  
获取:9 http://deb.debian.org/debian bullseye/main Translation-en [6,236 kB]                                                                                                                                                                  
获取:10 http://deb.debian.org/debian bullseye/contrib arm64 Packages [40.8 kB]                                                                                                                                                               
获取:11 http://deb.debian.org/debian bullseye/contrib armhf Packages [40.1 kB]                                                                                                                                                               
获取:12 http://deb.debian.org/debian bullseye/contrib Translation-en [46.9 kB]                                                                                                                                                               
获取:13 http://deb.debian.org/debian bullseye/non-free armhf Packages [56.0 kB]                                                                                                                                                              
获取:14 http://deb.debian.org/debian bullseye/non-free arm64 Packages [72.3 kB]                                                                                                                                                              
获取:15 http://deb.debian.org/debian bullseye/non-free Translation-en [92.2 kB]                                                                                                                                                              
获取:16 http://deb.debian.org/debian bullseye-updates/main arm64 Packages [16.3 kB]                                                                                                                                                          
获取:17 http://deb.debian.org/debian bullseye-updates/main armhf Packages [16.3 kB]                                                                                                                                                          
获取:18 http://deb.debian.org/debian bullseye-updates/main Translation-en [10.9 kB]                                                                                                                                                          
已下载 20.1 MB,耗时 1分 23秒 (243 kB/s)                                                                                                                                                                                                     
正在读取软件包列表... 完成
N: 仓库'http://deb.debian.org/debian bullseye InRelease'将其'Version'值从'11.3'修改到了'11.9'
N: 仓库'http://deb.debian.org/debian bullseye InRelease'将其'Suite'值从'stable'修改到了'oldstable'
N: 仓库'http://deb.debian.org/debian bullseye-updates InRelease'将其'Suite'值从'stable-updates'修改到了'oldstable-updates'
root@raspberrypi:/home/ailixia# curl -sSL https://get.docker.com | sh
# Executing docker install script, commit: e5543d473431b782227f8908005543bb4389b8de
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c install -m 0755 -d /etc/apt/keyrings
+ sh -c curl -fsSL "https://download.docker.com/linux/debian/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
+ sh -c chmod a+r /etc/apt/keyrings/docker.gpg
+ sh -c echo "deb [arch=arm64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian bullseye stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin >/dev/null
+ sh -c docker version
Client: Docker Engine - Community
 Version:           25.0.4
 API version:       1.44
 Go version:        go1.21.8
 Git commit:        1a576c5
 Built:             Wed Mar  6 16:32:16 2024
 OS/Arch:           linux/arm64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          25.0.4
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.21.8
  Git commit:       061aa95
  Built:            Wed Mar  6 16:32:16 2024
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.28
  GitCommit:        ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

================================================================================

To run Docker as a non-privileged user, consider setting up the
Docker daemon in rootless mode for your user:

    dockerd-rootless-setuptool.sh install

Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.


To run the Docker daemon as a fully privileged service, but granting non-root
users access, refer to https://docs.docker.com/go/daemon-access/

WARNING: Access to the remote API on a privileged Docker daemon is equivalent
         to root access on the host. Refer to the 'Docker daemon attack surface'
         documentation for details: https://docs.docker.com/go/attack-surface/

================================================================================

root@raspberrypi:/home/ailixia# 
root@raspberrypi:/home/ailixia# docker

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Common Commands:
  run         Create and run a new container from an image
  exec        Execute a command in a running container
  ps          List containers
  build       Build an image from a Dockerfile
  pull        Download an image from a registry
  push        Upload an image to a registry
  images      List images
  login       Log in to a registry
  logout      Log out from a registry
  search      Search Docker Hub for images
  version     Show the Docker version information
  info        Display system-wide information

Management Commands:
  builder     Manage builds
  buildx*     Docker Buildx (Docker Inc., v0.13.0)
  compose*    Docker Compose (Docker Inc., v2.24.7)
  container   Manage containers
  context     Manage contexts
  image       Manage images
  manifest    Manage Docker image manifests and manifest lists
  network     Manage networks
  plugin      Manage plugins
  system      Manage Docker
  trust       Manage trust on Docker images
  volume      Manage volumes

Swarm Commands:
  swarm       Manage Swarm

Commands:
  attach      Attach local standard input, output, and error streams to a running container
  commit      Create a new image from a container's changes
  cp          Copy files/folders between a container and the local filesystem
  create      Create a new container
  diff        Inspect changes to files or directories on a container's filesystem
  events      Get real time events from the server
  export      Export a container's filesystem as a tar archive
  history     Show the history of an image
  import      Import the contents from a tarball to create a filesystem image
  inspect     Return low-level information on Docker objects
  kill        Kill one or more running containers
  load        Load an image from a tar archive or STDIN
  logs        Fetch the logs of a container
  pause       Pause all processes within one or more containers
  port        List port mappings or a specific mapping for the container
  rename      Rename a container
  restart     Restart one or more containers
  rm          Remove one or more containers
  rmi         Remove one or more images
  save        Save one or more images to a tar archive (streamed to STDOUT by default)
  start       Start one or more stopped containers
  stats       Display a live stream of container(s) resource usage statistics
  stop        Stop one or more running containers
  tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
  top         Display the running processes of a container
  unpause     Unpause all processes within one or more containers
  update      Update configuration of one or more containers
  wait        Block until one or more containers stop, then print their exit codes

Global Options:
      --config string      Location of client config files (default "/root/.docker")
  -c, --context string     Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use")
  -D, --debug              Enable debug mode
  -H, --host list          Daemon socket to connect to
  -l, --log-level string   Set the logging level ("debug", "info", "warn", "error", "fatal") (default "info")
      --tls                Use TLS; implied by --tlsverify
      --tlscacert string   Trust certs signed only by this CA (default "/root/.docker/ca.pem")
      --tlscert string     Path to TLS certificate file (default "/root/.docker/cert.pem")
      --tlskey string      Path to TLS key file (default "/root/.docker/key.pem")
      --tlsverify          Use TLS and verify the remote
  -v, --version            Print version information and quit

Run 'docker COMMAND --help' for more information on a command.

For more help on how to use Docker, head to https://docs.docker.com/go/guides/
root@raspberrypi:/home/ailixia# docker pull emqx/emqx
Using default tag: latest
latest: Pulling from emqx/emqx
ee424c952427: Pull complete 
adf226407af9: Pull complete 
13c969ec2cd1: Pull complete 
4f4fb700ef54: Pull complete 
6a7d354bc32b: Pull complete 
Digest: sha256:551f252e84f6d015cab96d5b8b2b80a09cbb04f3715bf4aeec4a49c67f62f652
Status: Downloaded newer image for emqx/emqx:latest
docker.io/emqx/emqx:latest
root@raspberrypi:/home/ailixia# docker run -d --name emqx -p 18083:18083 -p 1883:1883 emqx/emqx:latest
1c6607948ab89842ee80383f4f4aab21673d00644c5d5db82ef1f476310d5471
root@raspberrypi:/home/ailixia# 
root@raspberrypi:/home/ailixia# 
 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

黄盖233

谢谢你!我的余生

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值