mirror of https://github.com/docker/docs.git
Fix horizontal scroll for mobile view
**Issue**: An inline code block (single back-ticks) was too large, causing the width to be exceeded and a horizontal scrollbar to be included. **Solution**: The inline code (single case) was transformed to a distinct code block (using triple back-ticks), which does not produce the same issue. The issue was found for: - Browser: Firefox Daylight 101.2.0 - OS: Android 10 - Phone resolution: 1440x2880 pixels > When previewing the file on github, the inline code is properly split over multiple lines. However, this is not the case for the [docker docs webpage](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user).
This commit is contained in:
parent
474c285845
commit
67e9850c77
|
@ -851,7 +851,11 @@ parts of your image.
|
|||
|
||||
If a service can run without privileges, use `USER` to change to a non-root
|
||||
user. Start by creating the user and group in the `Dockerfile` with something
|
||||
like `RUN groupadd -r postgres && useradd --no-log-init -r -g postgres postgres`.
|
||||
like:
|
||||
|
||||
```dockerfile
|
||||
RUN groupadd -r postgres && useradd --no-log-init -r -g postgres postgres
|
||||
```
|
||||
|
||||
> Consider an explicit UID/GID
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue