Download the offline installation package

Link: pan.baidu.com/s/1KIB1ygtZ… Password: z3p1

Install Docker using the command

The tar - ZXVF docker - 1.11.2 - ubuntu 16.04. Tar. GzcdDocker 1.11.2 - ubuntu 16.04 sudo bash the shCopy the code

Create a Docker user group

sudo groupadd docker
Copy the code

Add the current user to the docker user group (docker can operate even without sudo permission)

sudo gpasswd -a ${USER} docker
Copy the code

Exit the terminal and restart

Import and export containers offline

Image export and import (self test can be used)

Docker save -o update1.tar update // Export the image docker load < update1.tar // Import the image docker load -i update1.tar // Import the imageCopy the code

Can also be used (never tried)

Docker import-update < update.tar // Container export imports the docker in this wayexportCbe3cb7799ed > update.tar // Container exportCopy the code