Don't run Docker containers as Root user

Open
#2,001 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, dockerfile
Domain
devops, security

Research direction

Start by locating all Dockerfiles in the repository and reviewing how each image currently selects its user. Check how the images are built and run, including attempts to use the --user argument. Done means every Docker container creates and uses a non-root user without introducing permission errors.

Written by the indexing model from the issue text.

Description

docs-build enhancement preview

Currently all of the Docker containers run as the root user, and any attempts to run them as a different user with the --user argument lead to permissions errors. This causes problems in environments that don't allow containers to run as root as a security measure.

Update Dockerfiles to create and use a non-root user.

Dominant language
Ruby
Stars
265
Forks
347
Avg merge
3d 15h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from elastic/docs

All issues in elastic/docs

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.