lh3 / seqtk

Toolkit for processing sequences in FASTA/Q formats
MIT License
1.38k stars 308 forks source link

DNS Resolution Warning with Singularity Container #207

Open ua-micro-cha opened 7 months ago

ua-micro-cha commented 7 months ago

When running the seqtk Singularity container from the URL https://depot.galaxyproject.org/singularity/seqtk:1.2--1 using Apptainer, I encounter a warning message about skipping the mount of /etc/resolv.conf because it doesn't exist in the container. Here's the exact warning message:

WARNING: Skipping mount /var/apptainer/mnt/session/etc/resolv.conf [files]: /etc/resolv.conf doesn't exist in container

This file is typically used for DNS resolution. While this is currently just a warning and the container runs, I'm concerned it might cause issues in the future if the seqtk tool needs to resolve DNS names.

Could you please advise on whether this is something to be concerned about, and if so, suggest a possible solution? Is there a way to include /etc/resolv.conf in the container, or is there another recommended way to handle DNS resolution?

Thank you for your assistance.