# docker –version Docker version 19.03.13, build 4484c46
# docker run hello-world Unable to find image ‚hello-world:latest‘ locally latest: Pulling from library/hello-world 256ab8fe8778: Pull complete Digest: sha256:31b9c7d48790f0d8c50ab433d9c3b7e17666d6993084c002c2ff1ca09b96391d Status: Downloaded newer image for hello-world:latest
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.
To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID: https://hub.docker.com/
For more examples and ideas, visit: https://docs.docker.com/get-started/
# apt-get install net-tools Reading package lists… Done Building dependency tree Reading state information… Done The following NEW packages will be installed: net-tools 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 190 kB of archives. After this operation, 831 kB of additional disk space will be used. Get:1 http://ports.ubuntu.com/ubuntu-ports groovy/main arm64 net-tools arm64 1.60+git20180626.aebd88e-1ubuntu2 [190 kB] Fetched 190 kB in 0s (581 kB/s) Selecting previously unselected package net-tools. (Reading database … 102236 files and directories currently installed.) Preparing to unpack …/net-tools_1.60+git20180626.aebd88e-1ubuntu2_arm64.deb … Unpacking net-tools (1.60+git20180626.aebd88e-1ubuntu2) … Setting up net-tools (1.60+git20180626.aebd88e-1ubuntu2) … Processing triggers for man-db (2.9.3-2) …
# docker network ls NETWORK ID NAME DRIVER SCOPE b772d441d3cf bridge bridge local a4f5207ad27d host host local 84d120f5b7b0 none null local
(–rm) Clean up (-it ) For interactive processes (like a shell) you must use -i -t together in order to allocate a tty for the container process (–name) Name
# docker run –rm -it –name one –hostname iot-jsho-docker-01 ubuntu /bin/bash root@iot-jsho-docker-01:/#
# docker network ls NETWORK ID NAME DRIVER SCOPE b772d441d3cf bridge bridge local a4f5207ad27d host host local 48185ed15c92 jsho-docker bridge local 84d120f5b7b0 none null local