A quick question: for Docker images that contain m...
# help
l
A quick question: for Docker images that contain multiple tools (e.g., community.wave.seqera.io/library/htslib_samtools_star_gawk:de8c848656c2c4c5), is there a quick way to find out the version of each tool? Does anyone know? Thanks!
m
Yes. If you look in the /tmp/ folder there should be a
conda.yml
, and an
environment.lock
file. The
conda.yml
contains the tools and their versions that were used to resolve the environment. The
environment.lock
file contains the versions of every package in the environment.
Given the
environment.lock
someone else should be able to create the exact same conda environment ( on linux )
l
yes gocha thanks
And, I just wanted to suggest whether it's possible to include the versions of multiple tools directly in the image name ( like
community.wave.seqera.io/library/fastp:0.26.0--7c8c3de6c8d83060
).
m
I think there's a character limit. If you build containers with lots of tools, the image name comes back with the ending
_pruned
which would lose a lot more information if version information was included. However feel free to submit it as a suggestion to Seqera: https://seqera.io/feedback/. I'm not sure if there's a better place to request this.
m
I think you should be able to inspect the build log based on the image id
l
Thank you for your suggestion, but I tried both
docker image inspect
and
docker image history
, and neither provided the tool's version information.
Copy code
docker image inspect community.wave.seqera.io/library/htslib_samtools_star_gawk:12e3ad49170616c5
docker image history community.wave.seqera.io/library/htslib_samtools_star_gawk:12e3ad49170616c5
m
Oh, sorry, I meant finding the corresponding build page on the Seqera website
t
Don't know if there is a universal mechanism for all container engines, but Apptainer/Singularity has the
run-help
command that show a help screen of arbitrary length that the developer can define. This might be a good place to list tools and their versions. I you need to find the version of a particular tool in one or more containers, you can always just run that tool with
--version
(so something similar), if the tool supports that.
m
So in your case, I'd say:
Copy code
- htslib=1.21
- samtools=1.21
- star=2.7.11b
- gawk=5.1.0
m
Given the image path, how do you find the container build?
m
I used the tag, I assumed it was the build id
So from there I reverse engineered the URL
tenor_gif7717475068357772247.gif
🐕 1