How Do I Create an Image Package?
Run the docker save command to compress the container image into a .tar or .tar.gz package. The command format is as follows:
docker save [OPTIONS] IMAGE [IMAGE...]
[OPTIONS] can be set to --output or -o, indicating that the image is exported to a file.
Example:
$ docker save nginx:latest > nginx.tar $ ls -sh nginx.tar 108M nginx.tar $ docker save php:5-apache > php.tar.gz $ ls -sh php.tar.gz 372M php.tar.gz $ docker save --output nginx.tar nginx $ ls -sh nginx.tar 108M nginx.tar $ docker save -o nginx-all.tar nginx $ docker save -o nginx-latest.tar nginx:latest
General FAQs FAQs
- What Is SWR?
- SWR Overview
- How Do I Create a Container Image?
- How Do I Create an Image Package?
- Are There Quotas for SWR Resources?
- Why Does Organization Creation Fail?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore