Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Embedded porting docker error problem (summary)

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report