> ## Documentation Index
> Fetch the complete documentation index at: https://tally.wharflab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# hadolint/DL3001

> Command does not make sense in a container.

Command does not make sense in a container.

| Property | Value         |
| -------- | ------------- |
| Severity | Info          |
| Category | Best Practice |
| Default  | Enabled       |

## Description

For some POSIX commands it makes no sense to run them in a Docker container because they are bound to the host or are otherwise dangerous (like
`shutdown`, `service`, `ps`, `free`, `top`, `kill`, `mount`, `ifconfig`). Interactive utilities also don't make much sense (`nano`, `vim`).

## Examples

### Problematic code

```dockerfile theme={null}
FROM busybox
RUN top
```

### Correct code

```dockerfile theme={null}
FROM busybox
```

## Reference

* [hadolint/DL3001](https://github.com/hadolint/hadolint/wiki/DL3001)
