Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-17262

Docker "RUN rm " is not working in Pipeline

    XMLWordPrintable

Details

    Description

      Hi,

      In our bitbucket.com pipeline, we use the docker build command with a Dockerfile to create a docker image.
      Within the Dockerfile, we have the command:
      "RUN rm /etc/nginx/sites-enabled/default"

      Since this command seems to be silently failing (we do not get an "cannot find file" error or something else, the docker build process tells us that the command is executed and continues normally), we also added a:

      "ls -la /etc/nginx/sites-enabled"

      and can see that indeed, the file is not deleted in our container.

      We experience this behavior since at least 24 hours (maybe up to 4 days).
      We did not changed the build scripts/images and when executed on a different machine (not in bitbucket pipeline), the build is also working.

      br
      Tobias

      Attachments

        Activity

          People

            Unassigned Unassigned
            1db8e26bbef1 torauter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: