Embedded transplant docker error problem (summary)

Embedded transplant docker error problem (summary)

After a long period of transplantation and information query, I was able to solve the problems with embedded docker. A lot of information on the Internet is copy and paste, and it is very distressing to not be able to find a suitable solution. I hope that some of the experience I have summarized in solving problems can reduce some burdens for my friends!

1.standard file not found:


Solution:

tar zcvf xtables /usr/lib64/xtables
cp xtables.tar /work/initramfs/

Need to go to another server with the same kernel and system to package and decompress

2. iptables support is required to start docker. Transplant iptables and start docker error:


Solution:

docker --iptables=false
nohup docker --iptables=false >/1.txt 2>&1 & (background start)

3. Lack of network connection module of 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. The file system of the docker image does not match, pivot root invalid arguments


Solution:

cat >/etc/systemd/system/docker.service.d/10-ramdisk.conf <<EOF
> [Service]
> Environment=DOCKER_RAMDISK=true
> EOF
 export DOCKER_RAMDISK=true
Kill the docker started by the method just now and restart it.

Two additional points: After completing the above steps, the transplanted Docker can be used, but occasionally the following problem may occur.

If there is missing DNS file content, just transfer the resolv.conf file of any machine and it will be OK.

Attached is a picture of the module driver loaded after transplantation:

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Detailed explanation of the solution to the error of using systemctl to start the service in docker
  • Solution to the error when installing Docker on CentOS version
  • Docker practice: error resolution when starting a container from a new image
  • Docker gets the image and reports an error: docker: Error response from daemon
  • Solutions to Docker installation and error reporting issues under Windows 7
  • Ubuntu vps installs docker and reports an error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Problem solved
  • Solutions to docker images, info, -d and other command errors

<<:  Vue implements multiple ideas for theme switching

>>:  MySQL 8.0.13 download and installation tutorial with pictures and text

Recommend

MySQL series 6 users and authorization

Table of contents Tutorial Series 1. User Managem...

Detailed explanation of built-in methods of javascript array

Table of contents 1. Array.at() 2. Array.copyWith...

Vue implements verification code countdown button

This article example shares the specific code of ...

Detailed explanation of MySQL database triggers

Table of contents 1 Introduction 2 Trigger Introd...

7 Ways to Write a Vue v-for Loop

Table of contents 1. Always use key in v-for loop...

How to use Navicat to export and import mysql database

MySql is a data source we use frequently. It is v...

How to choose transaction isolation level in MySQL project

introduction Let's start with our content. I ...

Mysql classic high-level/command line operation (quick) (recommended)

Since I need to learn how to build servers and da...

How to correctly create MySQL indexes

Indexing is similar to building bibliographic ind...

HTML input file control limits the type of uploaded files

Add an input file HTML control to the web page: &...

How to use Maxwell to synchronize MySQL data in real time

Table of contents About Maxwell Configuration and...

js to implement verification code interference (static)

This article shares the specific code of js to im...

js canvas realizes circular water animation

This article example shares the specific code of ...