Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CannotCreateVolumeError: unsupported Dockerfile contains VOLUME instruction #334

Open
366-christoforos opened this issue Oct 31, 2023 · 1 comment
Labels

Comments

@366-christoforos
Copy link

366-christoforos commented Oct 31, 2023

Jenkins and plugins versions report

CannotCreateVolumeError: unsupported: Dockerfile contains VOLUME instruction

I search in dockerfile but i cannot see any volume anywhere :/

Docker image: jenkins/inbound-agent:windowsservercore-ltsc2019

What Operating System are you using (both controller, and any agents involved in the problem)?

Jenkins 2.387.3

Reproduction steps

  1. Create a ECS task
  2. Add ECS label
  3. Try to run a job

Expected Results

work with out the error.

Actual Results

break with error message

CannotCreateVolumeError: unsupported: Dockerfile contains VOLUME instruction

Anything else?

no

@366-christoforos 366-christoforos changed the title CannotCreateVolumeError: unsupported: Dockerfile contains VOLUME CannotCreateVolumeError: unsupported Oct 31, 2023
@366-christoforos 366-christoforos changed the title CannotCreateVolumeError: unsupported CannotCreateVolumeError: unsupported Dockerfile contains VOLUME instruction Oct 31, 2023
@kristofdho
Copy link

Running into this as well.
AWS Fargate does not support docker images which have VOLUME declarations.
So these 2 are the offending lines: https://github.com/jenkinsci/docker-agent/blob/798ce6450f7143c341e236e5962becf0b5e1b864/windows/windowsservercore/Dockerfile#L98-L99

They should not be necessary for correct functionality of the agent, so would be nice if they can somehow be optional or removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants