Uploaded image for project: 'OpenShift Specialist Platform Team'
  1. OpenShift Specialist Platform Team
  2. SPLAT-363

Permission denied on write to /var inside container

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • Quality / Stability / Reliability
    • False
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      {}USER STORY:{}

      As a developer, I want to run a simple container with a static application, but it fails to write to /var.

      {}DESCRIPTION:{}

      When creating a simple container with a static application (blackicebird/2048), container fails to start due to not enough permissions.

      oc logs g2048-64f85cb679-m79t9
      nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
      2021/12/20 19:44:14 [emerg] 1#0: mkdir() "/var/lib/nginx/tmp/client_body" failed (13: Permission denied)

      Here is a video of my attempt:

      https://drive.google.com/file/d/1Rn7Orcb0cEC91xMhgMh6xh7TbIojCqVL/view?usp=sharing

      And a gist of the yaml with the resources:

      https://gist.github.com/faermanj/dead394f19126c1cae978d5c05c8502b

      {}ACCEPTANCE CRITERIA:{}

      Application running and serving

      {}ENGINEERING DETAILS:{}

      Not sure what is wrong here, thanks for helping me investigate.

              faermanj Julio Faerman (Inactive)
              faermanj Julio Faerman (Inactive)
              None
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: