kaczmarj / apptainer-in-docker

Apptainer in Docker!
Apache License 2.0
43 stars 9 forks source link

/etc/localtime doesn't exist #1

Closed marrip closed 3 years ago

marrip commented 3 years ago

Hey,

I am really stoked that you created singularity in docker. I am super excited to use it in my workflows and automate my tests with it. However, I came across an error when running one of the examples from your docs:

docker run --rm --privileged kaczmarj/singularity:3.5.3 run shub://GodloveD/lolcow
INFO:    Downloading shub image
 87.57 MiB / 87.57 MiB  100.00% 5.85 MiB/s 14s01s
WARNING: skipping mount of /etc/localtime: no such file or directory
FATAL:   container creation failed: mount /etc/localtime->/etc/localtime error: while mounting /etc/localtime: mount source /etc/localtime doesn't exist

I am running docker on a Mac, docker engine version is 20.10.2. I could imagine the error is easy to fix still I wanted give some feedback. Keep up the good work 👍

kaczmarj commented 3 years ago

hi @marrip - thanks for the bug report! there was no file /etc/localtime in the docker image, so i added one to use UTC. other docker images, like debian:buster-slim, use UTC by default so I chose to follow their lead.

please try again with

docker run --rm --privileged kaczmarj/singularity:3.7.1 run shub://GodloveD/lolcow

and please reopen this issue if the problem is not resolved.