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

How to install and use Cockpit on CentOS 8/RHEL 8

Cockpit is a web-based server management tool ava...

js canvas realizes rounded corners picture

This article shares the specific code of js canva...

A brief discussion on when MySQL uses internal temporary tables

union execution For ease of analysis, use the fol...

Detailed explanation of vuex persistence in practical application of vue

Table of contents vuex persistence Summarize vuex...

Pure CSS to implement iOS style open and close selection box function

1 Effect Demo address: https://www.albertyy.com/2...

Detailed explanation of scheduled tasks and delayed tasks under Linux

at at + time at 17:23 at> touch /mnt/file{1..9...

js to achieve simple image drag effect

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

A brief analysis of the count tracking of a request in nginx

First, let me explain the application method. The...

Why is it not recommended to use an empty string as a className in Vue?

Table of contents Compare the empty string '&...

Master the commonly used HTML tags for quoting content in web pages

Use blockquote for long citations, q for short ci...

Summary of MySQL injection bypass filtering techniques

First, let’s look at the GIF operation: Case 1: S...

A brief discussion on ifnull() function similar to nvl() function in MySQL

IFNULL(expr1,expr2) If expr1 is not NULL, IFNULL(...

Detailed process of installing Jenkins-2.249.3-1.1 with Docker

Table of contents 1. Install Docker 2. Pull the J...