You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+15-9
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,8 @@ USER root
17
17
18
18
with this printed message
19
19
```
20
-
USER directive set to root at line 28 could cause an unexpected behavior. In OpenShift, containers are run using arbitrarily assigned user ID
20
+
USER directive set to root at line 28 could cause an unexpected behavior.
21
+
In OpenShift, containers are run using arbitrarily assigned user ID
21
22
```
22
23
23
24
### Run Directive
@@ -36,8 +37,12 @@ RUN chmod 700 /app
36
37
37
38
with this printed message
38
39
```
39
-
permission set on chmod 700 /app at line 10-18 could cause an unexpected behavior. Is it an executable file? Try updating permissions to 770 otherwise set it to 760
40
-
Explanation - in Openshift, directories and files need to be read/writable by the root group and files that must be executed should have group execute permissions
40
+
permission set on chmod 700 /app at line 10-18 could cause an unexpected
41
+
behavior. Is it an executable file? Try updating permissions to 770 otherwise
42
+
set it to 760
43
+
Explanation - in Openshift, directories and files need to be read/writable
44
+
by the root group and files that must be executed should have group execute
45
+
permissions
41
46
```
42
47
43
48
#### chown
@@ -51,8 +56,8 @@ RUN chown -R node:node /app
51
56
52
57
with this printed message
53
58
```
54
-
owner set on chown -R node:node /app at line 10-18 could cause an unexpected behavior.
55
-
In OpenShift the group ID must always be set to the root group (0)
59
+
owner set on chown -R node:node /app at line 10-18 could cause an unexpected
60
+
behavior. In OpenShift the group ID must always be set to the root group (0)
56
61
```
57
62
58
63
#### sudo/su
@@ -66,9 +71,9 @@ RUN sudo node -v
66
71
67
72
with this printed message
68
73
```
69
-
sudo/su command used in 'sudo node -v' at line 26 could cause an unexpected behavior.
70
-
In OpenShift, containers are run using arbitrarily assigned user ID and elevating privileges could lead
71
-
to an unexpected behavior
74
+
sudo/su command used in 'sudo node -v' at line 26 could cause an unexpected
75
+
behavior. In OpenShift, containers are run using arbitrarily assigned user ID
76
+
and elevating privileges could lead to an unexpected behavior
72
77
```
73
78
74
79
### Expose directive
@@ -82,7 +87,8 @@ EXPOSE 80
82
87
83
88
with this printed message
84
89
```
85
-
port 80 exposed at line 28 could be wrong. TCP/IP port numbers below 1024 are privileged port numbers
90
+
port 80 exposed at line 28 could be wrong. TCP/IP port numbers below 1024 are
0 commit comments