sal*_*adi 6 squashfs singularity-container
我有一个为我制作的奇点容器(用于在 Comet GPU 节点上运行张量流),但我需要根据我的目的修改 keras 安装。
我知道.simg文件不可编辑(并且不推荐使用可写格式),因此不鼓励转换为文件、编辑然后转换回的.img过程:.img.simg
sudo singularity build --writable development.img production.simg
## make changes
sudo singularity build production2.img development.simg
Run Code Online (Sandbox Code Playgroud)
在我看来,最好的方法可能是提取内容(比如放入沙箱中),编辑它们,然后将沙箱重建为.simg图像。
我知道如何进行第二次转换(singularity build new-sif sandbox),但我该如何进行第一次转换?
我已尝试以下操作,但该命令从未完成:
sudo singularity build tf_gpu tensorflow-gpu.simg
WARNING: Authentication token file not found : Only pulls of public images will succeed
Build target already exists. Do you want to overwrite? [N/y] y
2018/10/12 08:39:54 bufio.Scanner: token too long
INFO: Starting build...
Run Code Online (Sandbox Code Playgroud)
您可以使用以下命令轻松地在沙箱和生产构建之间进行转换:
sudo singularity build lolcow.sif docker://godlovedc/lolcow # pulls and builds an example container
sudo singularity build --sandbox lolcow_sandbox/ lolcow.sif # converts from container to a writable sandbox
sudo singularity build lolcow2 lolcow_sandbox/ # converts from sandbox to container
Run Code Online (Sandbox Code Playgroud)
因此,您可以编辑沙箱,然后进行相应的重建。