<commit_before># Use shell for layer

If you have a build that somehow fails you can with luck log in and inspect the file system of the last known working layer:

```bash
$ docker run --rm -it <id_last_working_layer> bash -il
```

This can also help to see what and where components are actually staged, by the docker build proces.

You can access containers using `bash`, do remember that you container should offer the shell specified.

For a already running container:

```bash
$ docker exec -it <containername> /bin/bash
```

If you want to run it yourself (a variation of the first tip)

```bash
$ docker run -it --entrypoint /bin/bash <imagename>
```

Do read the rest of the Stack Oveflow entry, it holds a lot of good information.

[Source: Stack Overflow](http://stackoverflow.com/questions/26220957/how-can-i-inspect-the-file-system-of-a-failed-docker-build)

<commit_msg>Corrected some formatting and spelling<commit_after># Use shell for layer

If you have a build that somehow fails you can with luck log in and inspect the file system of the last known working layer:

```bash
$ docker run --rm -it <id_last_working_layer> bash -il
```

This can also help to see what and where components are actually staged, by the docker build proces.

You can access containers using `bash`, do remember that you container should offer the shell specified.

For a already running container:

```bash
$ docker exec -it <containername> /bin/bash
```

If you want to run it yourself (a variation of the first tip)

```bash
$ docker run -it --entrypoint /bin/bash <imagename>
```

Do read the rest of the referenced **StackOverflow** entry, it holds a lot of good information.

[Source: StackOverflow](http://stackoverflow.com/questions/26220957/how-can-i-inspect-the-file-system-of-a-failed-docker-build)


{'fraction_non_alphanumeric': 0.0886426592797784, 'fraction_numerical': 0.00886426592797784, 'mean_word_length': 4.219653179190751, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '640076', 'n_tokens_mistral': 558, 'n_tokens_neox': 502, 'n_words': 247}