When do Matlab updates get pushed to docker hub?

2 次查看(过去 30 天)
I am using the official matlab image on Docker Hub to drive CI/CD automation in our workflow. Currently, the Matlab r2024a image uses update 3. The latest matlab update is update 5, and our developers are using update 5 for their development. When will update 5 be pushed to docker hub? Is there a way to specify one update over another?

回答(1 个)

Vandit
Vandit 2024-7-24
Hello Joshua,
To confirm the version of the Matlab Docker image you are using, you can run the following command:
docker run --pull=always --rm mathworks/matlab:latest cat /opt/matlab/R2024a/VersionInfo.xml
This command forces Docker to pull the latest image and display the version information, ensuring that you are using the most recent update.
It appears that the issue may be related to Docker caching. By default, the "docker run" command uses the image on disk and does not pull a new one. To ensure that you are using the most recent image, you can force Docker to pull a fresh image by including the "--pull=always" option in your run command, as shown above.
Please note that images are not tagged based on the update level. Therefore, the only way to pull older update levels of a particular release is if you have the digest for that Docker image.
Hope this helps.
  2 个评论
Luis
Luis 2025-5-2
编辑:Luis 2025-5-2
Hello @Vandit. Do you mind elaborate on:
Please note that images are not tagged based on the update level. Therefore, the only way to pull older update levels of a particular release is if you have the digest for that Docker image.
I'm currently trying to create a Dockerfile that can build a specific MATLAB update (2024a-U6), instead of pulling the latest by default (U7). I thought I found the answer here but this didn't work.
The reason why we need a specific update is because we need our CI to exactly align on the version our project uses, due to customer requirements and internal process compliance.
P.S. I have a pre-built image with 2024a-U6, and I recently built the 2024a-U7. So I hope the metadata I need is somewhere there.
Thank you in advance for your help.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Containers 的更多信息

产品


版本

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by