From 67e9850c776071d486d811c52f1095dd87c00f29 Mon Sep 17 00:00:00 2001 From: Milan van Wouden <56082205+MvWouden@users.noreply.github.com> Date: Fri, 24 Jun 2022 13:31:30 +0200 Subject: [PATCH] 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). --- develop/develop-images/dockerfile_best-practices.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/develop/develop-images/dockerfile_best-practices.md b/develop/develop-images/dockerfile_best-practices.md index 13523564e5..7f90775c7b 100644 --- a/develop/develop-images/dockerfile_best-practices.md +++ b/develop/develop-images/dockerfile_best-practices.md @@ -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 >