when docker pull kitware/cmake:ci-debian10-x86_64-2022-02-25, follow error has occurred:
$ docker pull kitware/cmake:ci-debian10-x86_64-2022-02-25
failed to register layer: Error processing tar file(exit status 1): write /usr/lib/x86_64-linux-gnu/ldscripts/elf32_x86_64.xsw: read-only file system
What was the cause? Are there any solutions?
env:
It seems like it is probably a WSL2 problem. Can you pull other images?
@ Ben Boeckel thx for rep. maybe this image doesn’t support windows wsl? i will also try fedora-image, but it maybe good to apt-install cmake
in any os image…
this was good advise. fedora image could run.
>docker run --rm -it kitware/cmake:ci-fedora35-x86_64-2022-02-21
[root@7d05a7c61def /]# cmake /V
cmake version 3.22.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
however, I don’t know diff from them.
while docker pull
debian-image on cmd with Administrator privileges, it was also success.
but strangely cmake
doesn’t exist…??
>docker run --rm -it kitware/cmake:ci-debian10-x86_64-2022-02-25
$ root@d9bc486e1ba0:/# cmake /V
bash: cmake: command not found
automake
exists…
$ root@d9bc486e1ba0:/# automake --version
automake (GNU automake) 1.16.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Tom Tromey <tromey@redhat.com>
and Alexandre Duret-Lutz <adl@gnu.org>.
You’re pulling the CI image; why do you think CMake would exist in there already?
Note: It probably exists in the Fedora image because of dependencies from some other package we install.
@ Ben Boeckel
because i’m beginner at Docker and CMake, i dont know for detail, the image can use CMake on CI? Where are description?
if i guess it from it’s image name, i think that [kitware/cmake:build-linux-x86_64-deps-2020-04-02 https://hub.docker.com/layers/kitware/cmake/build-linux-x86_64-deps-2020-04-02/images/sha256-77e9ab183f34680990db9da5945473e288f0d6556bce79ecc1589670d656e157
] is a image for building.
however, bootstrap
script file such as https://cmake.org/install/
doesn’t exist. where are docker images for building?
Maybe you could start with explaining what your goal is here. Do you just want a CMake binary for Linux? The .tar.gz
downloads from the webpage should be sufficient.
when building cmake-self or using command cmake
on docker, can use kitware/cmake:tag ?
Why would a CMake-specific image be of any use? You also need any dependencies and at that point either adding CMake to the list of packages to install or downloading the tarball isn’t that far away. What problem are you trying to solve here?