net-tools

ifconfig


$ apt-get install net-tools


ip


$ apt-get install iproute2


ping


$ apt-get install iputils-ping



https://zj-linux-guide.readthedocs.io/zh_CN/stable/tools/%5BUbuntu%2018.02%5D%5Bifconfig%5D%5Bip%5D%5Bping%5D%E7%BD%91%E7%BB%9C%E5%B7%A5%E5%85%B7%E5%AE%89%E8%A3%85.html
https://opensuse.pkgs.org/tumbleweed/opensuse-oss-x86_64/busybox-net-tools-1.35.0-22.1.noarch.rpm.html

https://embedkari.com/linux-busyboxdpkgapt-getapt/



https://raw.githubusercontent.com/dvershinin/apt-get-centos/master/apt-get.sh



Sometimes you’ll want to have a shell into that VM, but that turns out to be more complicated than I initially expected. There is however an easily accessible debug shell available.



First, open a terminal and use socat to open the debug shell socket to the VM using the following command:
$ socat -d -d ~/Library/Containers/com.docker.docker/Data/debug-shell.sock pty,rawer
socat will print the line “PTY is /dev/ttys010“, to which you can then connect to using screen on another terminal window:
$ screen /dev/ttys0xx
So that will look something like this:



$ socat -d -d ~/Library/Containers/com.docker.docker/Data/debug-shell.sock pty,rawer
2021/01/02 21:28:43 socat[23508] N opening connection to LEN=73 AF=1 “/Users/simon/Library/Containers/com.docker.docker/Data/debug-shell.sock”
2021/01/02 21:28:43 socat[23508] N successfully connected from local address LEN=16 AF=1 “”
2021/01/02 21:28:43 socat[23508] N successfully connected via
2021/01/02 21:28:43 socat[23508] N PTY is /dev/ttys010
2021/01/02 21:28:43 socat[23508] N starting data transfer loop with FDs [5,5] and [6,6]



$ screen /dev/ttys010
/ #
/ # uname -a
Linux docker-desktop 4.19.121-linuxkit #1 SMP Tue Dec 1 17:50:32 UTC 2020 x86_64 Linux
The VM is a very stripped down Alpine image with no package manager available, so you’ll have to make do with what is available.



https://www.krenger.ch/blog/docker-desktop-for-mac-ssh-into-the-docker-vm/


Category linux