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

Possibility to pass flags to the docker run command #11

Open
TenPetr opened this issue Jul 28, 2021 · 1 comment
Open

Possibility to pass flags to the docker run command #11

TenPetr opened this issue Jul 28, 2021 · 1 comment

Comments

@TenPetr
Copy link

TenPetr commented Jul 28, 2021

I need to run Docker in Docker in my pipelines and I am not able to start the daemon without passing the --privileged flag to the docker run command. Now, you are only able to specify a custom docker image name, but you cannot pass flags.

Screenshot 2021-07-28 at 7 56 08

Is there any other way, how to start DinD inside the toolchain pipeline or would it be possible to add this feature to the classic pipelines?

Thanks a lot

@youming-lin
Copy link
Collaborator

youming-lin commented Jul 28, 2021

@TenPetr
Hi, I suggest asking in our Slack: https://ic-devops-slack-invite.us-south.devops.cloud.ibm.com/

This should be possible, although I've never tried it myself. The Tekton version of this pipeline uses a dind task to containerize:
https://github.com/open-toolchain/code-engine-toolchain/blob/master/.tekton/ci/ci-pipeline.yml#L187-L236

The referenced task is here: https://github.com/open-toolchain/tekton-catalog/blob/22769850e376e934528f708c25ca705b50e94a7c/container-registry/task-execute-in-dind.yaml

You might be able to replicate what the task is doing in classic.

DevOpsBot1 pushed a commit that referenced this issue Apr 6, 2022
Validator for code engine projects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants