Docker
Warning
Turing does not support Docker. Docker containers MUST be run using Apptainer.
Running public Docker containers using Apptainer
Apptainer can directly run containers available on DockerHub. For example, to run the sylabsio/lolcow:latest container, first run
then use the following command:$ apptainer run --userns docker://sylabsio/lolcow:latest
INFO: Detected Singularity user configuration directory
INFO: Converting OCI blobs to SIF format
INFO: Starting build...
Copying blob 5ca731fc36c2 done |
Copying blob 16ec32c2132b done |
Copying config fd0daa4d89 done |
Writing manifest to image destination
2024/10/21 10:32:08 info unpack layer: sha256:16ec32c2132b43494832a05f2b02f7a822479f8250c173d0ab27b3de78b2f058
2024/10/21 10:32:08 info unpack layer: sha256:5ca731fc36c28789c5ddc3216563e8bfca2ab3ea10347e07554ebba1c953242e
INFO: Creating SIF file...
INFO: fuse2fs not found, will not be able to mount EXT3 filesystems
INFO: gocryptfs not found, will not be able to use gocryptfs
______________________________
< Mon Oct 21 10:32:11 EDT 2024 >
------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
To save a public Docker container as a SIF file for later use with Apptainer, run:
$ apptainer pull docker://sylabsio/lolcow:latest
INFO: Converting OCI blobs to SIF format
INFO: Starting build...
Getting image source signatures
Copying blob 16ec32c2132b done
Copying blob 5ca731fc36c2 done
Copying config fd0daa4d89 done
Writing manifest to image destination
Storing signatures
2024/07/17 14:25:43 info unpack layer: sha256:16ec32c2132b43494832a05f2b02f7a822479f8250c173d0ab27b3de78b2f058
2024/07/17 14:25:44 info unpack layer: sha256:5ca731fc36c28789c5ddc3216563e8bfca2ab3ea10347e07554ebba1c953242e
INFO: Creating SIF file...
$ apptainer run lolcow_latest.sif
______________________________
< Wed Jul 17 14:25:57 EDT 2024 >
------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
More information about using Docker/OCI containers with Apptainer can be found at the Apptainer documentation.