# issue: docker pull error: 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

**URL:** https://discourse.cmake.org/t/issue-docker-pull-error-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/5168
**Category:** Usage
**Tags:** os:windows
**Created:** [March 4, 2022, 9:44pm UTC](https://discourse.cmake.org/t/issue-docker-pull-error-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/5168 "2022-03-04T21:44:27Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Cartman0](https://discourse.cmake.org/user_avatar/discourse.cmake.org/cartman0/32/2246_2.png) [@Cartman0](https://discourse.cmake.org/u/Cartman0)
#### Post date: [March 4, 2022, 9:44pm UTC](https://discourse.cmake.org/t/issue-docker-pull-error-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/5168/1 "2022-03-04T21:44:27Z")

</div>

when docker pull [kitware/cmake:ci-debian10-x86\_64-2022-02-25](https://hub.docker.com/layers/kitware/cmake/ci-debian10-x86_64-2022-02-25/images/sha256-aa7c01ce20c45e09f9ed26c8c1573798a1836e1fd0225c3ff5bc578597ebf8ee?context=explore), follow error has occurred:

```auto
$ 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:

- windows10
  - wsl2

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [March 4, 2022, 11:03pm UTC](https://discourse.cmake.org/t/issue-docker-pull-error-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/5168/2 "2022-03-04T23:03:14Z")

</div>

It seems like it is probably a WSL2 problem. Can you pull other images?

---

<div class="post-metadata">

### Author: ![Cartman0](https://discourse.cmake.org/user_avatar/discourse.cmake.org/cartman0/32/2246_2.png) [@Cartman0](https://discourse.cmake.org/u/Cartman0)
#### Post date: [March 5, 2022, 5:06am UTC](https://discourse.cmake.org/t/issue-docker-pull-error-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/5168/3 "2022-03-05T05:06:17Z")

</div>

@ [Ben Boeckel](https://discourse.cmake.org/u/ben.boeckel) thx for rep. maybe this image doesn’t support windows wsl? i will also try [fedora-image](https://hub.docker.com/layers/kitware/cmake/ci-fedora35-x86_64-2022-02-21/images/sha256-c71c559f81b92be645a9314acfd24c1e46e1d75db95c868cf86c8ca719a11537?context=explore), but it maybe good to `apt-install cmake` in any os image…

---

<div class="post-metadata">

### Author: ![Cartman0](https://discourse.cmake.org/user_avatar/discourse.cmake.org/cartman0/32/2246_2.png) [@Cartman0](https://discourse.cmake.org/u/Cartman0)
#### Post date: [March 5, 2022, 10:33am UTC](https://discourse.cmake.org/t/issue-docker-pull-error-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/5168/4 "2022-03-05T10:33:11Z")

</div>

this was good advise. fedora image could run.

```auto
>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.

---

<div class="post-metadata">

### Author: ![Cartman0](https://discourse.cmake.org/user_avatar/discourse.cmake.org/cartman0/32/2246_2.png) [@Cartman0](https://discourse.cmake.org/u/Cartman0)
#### Post date: [March 5, 2022, 6:00pm UTC](https://discourse.cmake.org/t/issue-docker-pull-error-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/5168/5 "2022-03-05T18:00:17Z")

</div>

while `docker pull` debian-image on cmd with Administrator privileges, it was also success.

but strangely `cmake` doesn’t exist…??

```auto
>docker run --rm -it kitware/cmake:ci-debian10-x86_64-2022-02-25
$ root@d9bc486e1ba0:/# cmake /V
bash: cmake: command not found

```

`automake` exists…

```auto
$ 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>.

```

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [March 5, 2022, 11:25pm UTC](https://discourse.cmake.org/t/issue-docker-pull-error-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/5168/6 "2022-03-05T23:25:55Z")

</div>

> [@Cartman0](#):
>
> but strangely `cmake` doesn’t exist…??

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.

---

<div class="post-metadata">

### Author: ![Cartman0](https://discourse.cmake.org/user_avatar/discourse.cmake.org/cartman0/32/2246_2.png) [@Cartman0](https://discourse.cmake.org/u/Cartman0)
#### Post date: [March 6, 2022, 9:48am UTC](https://discourse.cmake.org/t/issue-docker-pull-error-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/5168/8 "2022-03-06T09:48:07Z")

</div>

@ [Ben Boeckel](https://discourse.cmake.org/u/ben.boeckel)

> [@ben.boeckel](#):
>
> You’re pulling the CI image; why do you think CMake would exist in there already?

because i’m beginner at Docker and CMake, i dont know for detail, the image can use CMake on CI? Where are description?

---

<div class="post-metadata">

### Author: ![Cartman0](https://discourse.cmake.org/user_avatar/discourse.cmake.org/cartman0/32/2246_2.png) [@Cartman0](https://discourse.cmake.org/u/Cartman0)
#### Post date: [March 6, 2022, 10:46am UTC](https://discourse.cmake.org/t/issue-docker-pull-error-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/5168/9 "2022-03-06T10:46:54Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [March 6, 2022, 3:46pm UTC](https://discourse.cmake.org/t/issue-docker-pull-error-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/5168/10 "2022-03-06T15:46:26Z")

</div>

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](https://cmake.org/download/) should be sufficient.

---

<div class="post-metadata">

### Author: ![Cartman0](https://discourse.cmake.org/user_avatar/discourse.cmake.org/cartman0/32/2246_2.png) [@Cartman0](https://discourse.cmake.org/u/Cartman0)
#### Post date: [March 6, 2022, 4:04pm UTC](https://discourse.cmake.org/t/issue-docker-pull-error-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/5168/11 "2022-03-06T16:04:11Z")

</div>

when building cmake-self or using command `cmake` on docker, can use kitware/cmake:tag ?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [March 10, 2022, 3:50am UTC](https://discourse.cmake.org/t/issue-docker-pull-error-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/5168/12 "2022-03-10T03:50:43Z")

</div>

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?
