Get the App
SLTechnology News&Howtos  ›  Servers  › 

Embedded porting docker error problem (summary)

Shulou Source: shulou.com Published: 2022-06-02 02:54:20 10月03日 Update

After a long time of transplant and query information, to solve the problems of embedded docker, a lot of online materials are all copy-paste copy-paste, can not find a suitable solution is very distressing, hope that they summed up some of the problem-solving experience to the majority of friends to reduce some burden!

The 1.standard file cannot be found:

Solution:

Tar zcvf xtables / usr/lib64/xtablescp xtables.tar / work/initramfs/

You need to package and decompress to another server with the same kernel and system.

two。 Iptables support is required to start docker. Porting iptables has an error when starting docker:

Solution:

Docker-- iptables=falsenohup docker-- iptables=false > / 1.txt 2 > & 1 & (start in the background)

3. Missing network connection module for nat firewall:

Solution:

Modprobe iptable_nat

4. There is a problem entering the docker image. The veth module is missing. Load it directly.

Solution:

Modprobe veth

5. Entering the docker image file system does not match, pivot root invalid argumen

Solution:

Cat > / etc/systemd/system/docker.service.d/10-ramdisk.conf Environment=DOCKER_RAMDISK=true > EOF export DOCKER_RAMDISK=true drops the docker started by the method in kill, and restarts the OK.

After completing the above steps, the migrated docker can be used, but occasionally one of the following problems occurs.

If the missing DNS file content appears, send the resolv.conf file of any one to OK.

A module driver loaded after transplantation is attached:

The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.

Tags: Methods problems porting files modules content systems data mirroring support embedded appropriate long distressing all kernel background that is time friends Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MySQL Microsoft Xiaomi MariaDB