On this page

Show all

Help Center/ ModelArts/ Docker Containers with ModelArts/ FAQs/ How Do I Use Docker to Start an Image Saved Using a Notebook Instance?

How Do I Use Docker to Start an Image Saved Using a Notebook Instance?

Updated on 2024-06-12 GMT+08:00

An image saved using a notebook instance contains the Entrypoint parameter, as shown in Entrypoint. The executable file or command specified in the Entrypoint parameter overwrites the default boot command of the image. The command input in the Entrypoint parameter is not preset in the image. When you run docker run in the local environment to start the image, an error message is displayed, indicating that the container creation task fails because the boot file or directory is not found, as shown in Figure 2.

To avoid this error, configure the --entrypoint parameter to overwrite the program specified in Entrypoint. Use the boot file or command specified by the --entrypoint parameter to start the image. Example:

docker run -it -d --entrypoint /bin/bash image:tag
Figure 1 Entrypoint
Figure 2 Error reported when an image is being started
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback