Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 8918c93

Browse files
authored
fix: Add -e for echo newlines to resolve properly (#1708)
1 parent 051f6ba commit 8918c93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

containers/docker-from-docker-compose/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ If you get a number other than `0`, you can simply add your non-root user to rig
9494
```Dockerfile
9595
ARG NONROOT_USER=vscode
9696
97-
RUN echo "#!/bin/sh\n\
97+
RUN echo -e "#!/bin/sh\n\
9898
sudoIf() { if [ \"\$(id -u)\" -ne 0 ]; then sudo \"\$@\"; else \"\$@\"; fi }\n\
9999
SOCKET_GID=\$(stat -c '%g' /var/run/docker.sock) \n\
100100
if [ \"${SOCKET_GID}\" != '0' ]; then\n\

containers/docker-from-docker/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ If you get a number other than `0`, you can simply add your non-root user to rig
106106
```Dockerfile
107107
ARG NONROOT_USER=vscode
108108

109-
RUN echo "#!/bin/sh\n\
109+
RUN echo -e "#!/bin/sh\n\
110110
sudoIf() { if [ \"\$(id -u)\" -ne 0 ]; then sudo \"\$@\"; else \"\$@\"; fi }\n\
111111
SOCKET_GID=\$(stat -c '%g' /var/run/docker.sock) \n\
112112
if [ \"${SOCKET_GID}\" != '0' ]; then\n\

0 commit comments

Comments
 (0)