简体   繁体   English

是否可以从 Dockerfile 创建奇点图像?

[英]Is it possible to create a Singularity image from Dockerfile?

I have Singularity installed.我安装了奇点。 In my repo I have Dockerfile.在我的仓库中,我有 Dockerfile。 I want to create a SIF (Singularity Image) from that Dockerfile.我想从 Dockerfile 创建一个 SIF(奇点图像)。 I tried to look the docs and check the docker build option but it does not contain an option for Dockerfile.我试图查看文档并检查docker build选项,但它不包含 Dockerfile 的选项。 Is it possible to create a SIF image from Dockerfile?是否可以从 Dockerfile 创建 SIF 图像? Something like:就像是:

Singularity build test.sif Dockerfile 

You cannot build a singularity image from a dockerfile.您无法从 dockerfile 构建奇点图像。 But you can build a docker image from the dockerfile and then convert that docker image to singularity format.但是您可以从 dockerfile 构建 docker 图像,然后将该 docker 图像转换为奇异格式。

docker build -t myimg:latest .
sudo singularity build img.sif docker-daemon://myimg:latest

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM