Docker Arguments
It used to be possibly to pass dockers arguments when using a container in a Command Line build step. For example -v hostDir:containerDir
This seems to be unavailable as an option now?
How can I achieve this?
My use case is that I run tests that run in a docker container and I want to write the test output files to the host to make them available as artifacts.
Please sign in to leave a comment.
Hi, what version of TeamCity are you using? This should still be possible in TeamCity 2025.03 in the same way as previous releases:
TeamCity Cloud (build 174504)
I figured it out - if you have a kubernetes cloud profile enabled - it removes the option from your reply and replaces them with what I posted about.
Not sure if this is documented anywhere? This caused a lot of confusion. It is possible to have this option will still have the new kubernetes cloud profile enabled?
Thanks for letting me know about the Kubernetes Cloud Profile piece of information. This is expected behavior in this case, but we do have a feature request to provide the “additional run arguments” field. Please find it here: https://youtrack.jetbrains.com/issue/TW-92333.
I can suggest voting and/or commenting on this feature request to show your interest. Our developers use the information on our YouTrack site to determine which features to include in future releases of TeamCity. Additionally, comments on the YouTrack site are seen directly by the responsible developers, making it a great place to discuss your particular use case.
As a side-note, we will update our documentation to better clarify this current limitation.