Docker Community Forums

Share and learn in the Docker community.

How to escape character when using docker build --build-arg

Hello,

I would like to pass in a build argument which includes and exclamation mark “!” in the character string.

Is there a way to escape the character in order accept the !?

when i try to include the “!” in docker build it seems to truncate the command the “!” character and the process fails.

Thanks,