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
By default, {product-title} runs containers using an arbitrarily assigned user
270
286
ID. This provides additional security against processes escaping the container
@@ -279,12 +295,10 @@ execute permissions.
279
295
Adding the following to your Dockerfile sets the directory and file permissions
280
296
to allow users in the root group to access them in the built image:
281
297
282
-
====
283
298
----
284
299
RUN chgrp -R 0 /some/directory && \
285
300
chmod -R g=u /some/directory
286
301
----
287
-
====
288
302
289
303
Because the container user is always a member of the root group, the container
290
304
user can read and write these files. The root group does not have any special
@@ -355,8 +369,9 @@ as any user].
355
369
====
356
370
endif::[]
357
371
372
+
[discrete]
358
373
[[use-services]]
359
-
*Use Services for Inter-image Communication*
374
+
===== Use Services for Inter-image Communication
360
375
361
376
For cases where your image needs to communicate with a service provided by
362
377
another image, such as a web front end image that needs to access a database
@@ -370,7 +385,8 @@ balancing for requests.
370
385
For more information see https://kubernetes.io/docs/concepts/services-networking/service/[this documentation]. (NOTE to docs team: this link should really go to something in the openshift docs once we have it)
371
386
////
372
387
373
-
*Provide Common Libraries*
388
+
[discrete]
389
+
===== Provide Common Libraries
374
390
375
391
For images that are intended to run application code provided by a third party,
376
392
ensure that your image contains commonly used libraries for your platform. In
@@ -381,8 +397,9 @@ dependencies to be downloaded during application assembly time, speeding up
381
397
application image builds. It also simplifies the work required by application
382
398
developers to ensure all of their dependencies are met.
383
399
400
+
[discrete]
384
401
[[use-env-vars]]
385
-
*Use Environment Variables for Configuration*
402
+
===== Use Environment Variables for Configuration
386
403
387
404
Users of your image should be able to configure it without having to create a
388
405
downstream image based on your image. This means that the runtime configuration
global build defaults and overrides] section of the installation and
267
-
configuration guide. You can also use
262
+
xref:../../dev_guide/builds/advanced_build_operations.adoc#dev-guide-assigning-builds-to-nodes[Assigning Builds to Specific Nodes] section of the Developer Guide. For cluster
263
+
administrators, see the
264
+
xref:../../install_config/build_defaults_overrides.adoc#overview[Configuring Global Build Defaults and Overrides] section of the Installation and
0 commit comments