手機 - Cosmo Communicator - Debian - 如何啟動Docker



$ sudo apt-get update --allow-releaseinfo-change
$ sudo apt-get install docker.io

$ sudo systemctl start docker
    Job for docker.service failed because the control process exited with error code.
    See "systemctl status docker.service" and "journalctl -xe" for details.

$ systemctl status docker.service
    ● docker.service - Docker Application Container Engine
       Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Mon 2025-06-02 13:22:42 CST; 3s ago
         Docs: https://docs.docker.com
      Process: 7120 ExecStart=/usr/sbin/dockerd -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE)
     Main PID: 7120 (code=exited, status=1/FAILURE)

$ sudo dockerd --iptables=false&
$ sudo docker run hello-world
    Hello from Docker!
    This message shows that your installation appears to be working correctly.

    To generate this message, Docker took the following steps:
     1. The Docker client contacted the Docker daemon.
     2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
        (arm64v8)
     3. The Docker daemon created a new container from that image which runs the
        executable that produces the output you are currently reading.
     4. The Docker daemon streamed that output to the Docker client, which sent it
        to your terminal.