You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.
I have a Spring Project which produces files with a $ character in the middle of one filename. The $ sign is not escaped in the dockerfile and docker build tries variable substitution and cannot find the file.
How to reproduce
I have this file:
ServletInitializer$ApplicationContextHolder.class
What do you expect
$ character is escaped and file is copied to the image.
What happened instead
The $ character is not escaped in the dockerfile produced by the docker-maven-plugin. Docker cannot find the file because characters after the $ are interpreted as variable. In my case, the variable $ApplicationContextHolder does not exists and docker only looks for ServletInitializer.class
Software:
docker version: 1.11.2
docker-maven-plugin version: 0.4.10
maven version: 3.3.9
Link to documentation where escaping is explained:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
I have a Spring Project which produces files with a $ character in the middle of one filename. The $ sign is not escaped in the dockerfile and docker build tries variable substitution and cannot find the file.
How to reproduce
I have this file:
What do you expect
$ character is escaped and file is copied to the image.
What happened instead
The $ character is not escaped in the dockerfile produced by the docker-maven-plugin. Docker cannot find the file because characters after the $ are interpreted as variable. In my case, the variable $ApplicationContextHolder does not exists and docker only looks for ServletInitializer.class
Software:
Link to documentation where escaping is explained:
https://docs.docker.com/engine/reference/builder/
The text was updated successfully, but these errors were encountered: