Install docker in an offline environment and import the emqx image

Required installation file address:
Link: https://pan.baidu.com/s/1aiY68IEKdz9d6Mxd2__I3w
Extraction code: v3c7

1. Turn on or turn off windows functions
Check the following: Hyper-V, Containers, Windows Subsystem for Linux, as shown in the figure below< a i=2> 2. Install wsl_update_x64.msi (this file is required for docker installation) 3. Install docker (the default installation is sufficient) An error will be reported after the installation is completed , turn it off and restart. Check whether docker is installed successfully: docker version If the version number can be displayed normally, the installation is successful
Insert image description here





Insert image description here

4. Import emqx image
Execute command:

docker load --input emqx4.4.1.tar 或 docker load < emqx4.4.1.tar

5. Start emqx
Execute command:

docker run -d --name emqx -p 1883:1883 -p 8081:8081 -p 8083:8083 -p 8084:8084 -p 8883:8883 -p 18083:18083 emqx/emqx:4.4.1

6. Access localhost:18083/ and normal access is considered successful.

Note:
1. Docker view all images: docker images
Insert image description here

2. Docker package emqx image command:

docker save -o e:emqx4.4.1.tar emqx/emqx:4.4.1

where e:emqx4.4.1.tar is the path name of the exported image file
emqx/emqx is the image name (REPOSITORY), and 4.4.1 is the image version (TAG)

Guess you like

Origin blog.csdn.net/qq_39312230/article/details/123441544