【Share】Lightweight Linux + docker

How many steps does it take to install docker into a USB flash drive? I have always wanted to be a portable docker, so I looked around for a suitable method. Yesterday I published an installation article about RancherOS, but it is not comfortable to use (see: Download and Installation of RancherOS_Falling_Asteroid Blog- CSDN blog )

So I set my sights on the Alpine. It is a lightweight Linux, which is often used as the basic image of docker. The size of docker is only a few M when it is pulled down. It is a good choice to build docker on it.

But in the actual operation, I encountered many difficulties, such as failure to change the source, unable to connect to the external network...but I solved them one by one.

Here is the virtual machine file:

Instructions:

After decompression, open the file in the upper left corner of VMware, select the .vmx file, and then start it. There may be problems with VM version support. See: The virtual machine uses a hardware version that is not supported by this version of VMware Workstation-Baidu Experience 

 The user name is root, the password is root, and the self-starting ssh and docker have been set. The open port of ssh is 22. It may be necessary to modify the IP of Alpine so that it can access your network segment: for example, if your host IP is 192.168.80.1, then 80 It is your network segment, and the virtual machine needs to be on this network segment to connect to your host

Modify: The address value of /etc/network/interfaces is 192.168.80.XXX, XXX is optional but not a special value (such as 0, 1 or the value of your host), and modify gateway to your gateway, the specific value Check it in VMware's virtual network editor, refer to: ping: www.baidu.com: Unknown name or service reason analysis_Saipan blog-CSDN blog

 Extraction code: g937  network disk link

Replenish:

Regarding the opening and closing of firewalls and ports:  linux iptables open port command - linux operation and maintenance - Gugudian Program

Open and close the firewall with  Debian (Linux) bzdww 

Guess you like

Origin blog.csdn.net/Falling_Asteroid/article/details/129910012