Importing the Image
- Upload an image file.
Use an SFTP tool to copy the mymysql_centos8-mysql-arm_8.0.19.tar file to other required nodes (for example, the three compute nodes in the K8s cluster in this document).
- Run the following command on the nodes to import the image file to the local image repository:
1docker load < mymysql_centos8-mysql-arm_8.0.19.tar
Another method of image management is to use the image repository (for example, Docker Hub). After an image is created, it is uploaded to the image repository. The server that requires the image pulls the image from the image repository. This method simplifies image management. For details, see the usage of docker login and docker push.
Parent topic: Constructing a MySQL Docker Image