このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
|
ターミナル:コンテナ [2024/10/02 19:56] kawaue |
ターミナル:コンテナ [2024/12/07 16:26] (現在) kawaue |
||
|---|---|---|---|
| 行 8: | 行 8: | ||
| 例えばdocker hubのコンテナ[[https:// | 例えばdocker hubのコンテナ[[https:// | ||
| < | < | ||
| - | singularity | + | $ singularity |
| </ | </ | ||
| '' | '' | ||
| 行 18: | 行 18: | ||
| shellでコンテナの環境が利用できる。'' | shellでコンテナの環境が利用できる。'' | ||
| < | < | ||
| - | singularity shell t2kreweight_24_05.sif -B / | + | $ singularity shell t2kreweight_24_05.sif -B / |
| </ | </ | ||
| + | |||
| + | ===コンテナの編集=== | ||
| + | コンテナは基本的にreadonlyだが、containerで開発をしたいこともあるはず。例えば[[https:// | ||
| + | < | ||
| + | $ singularity build --sandbox development/ | ||
| + | </ | ||
| + | で編集可能なコンテナ(sandbox)をカレントディレクトリのdevelop/ | ||
| + | < | ||
| + | $ singularity shell --writable development/ | ||
| + | </ | ||
| + | |||