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

jq is generating wrong cmdrc #493

Closed
Greek64 opened this issue Mar 18, 2023 · 2 comments · Fixed by #525
Closed

jq is generating wrong cmdrc #493

Greek64 opened this issue Mar 18, 2023 · 2 comments · Fixed by #525
Labels

Comments

@Greek64
Copy link

Greek64 commented Mar 18, 2023

I have a image that is generated with a Dockerfile containing

ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
CMD ["bash"]

When using x11docker (x11docker -it -- test_image bash) with normal python (x11docker <= v7.4.2 OR jq uninstalled) the generated cmdrc contains

89  debugnote "cmdrc: Running container command:
90    '/bin/bash' '/entrypoint.sh'   'bash'"
91
92  '/bin/bash' '/entrypoint.sh'   'bash'
93
94  storeinfo cmdexitcode=$?

which works as expected.

When using x11docker (x11docker -it -- test_image bash) with jq (x11docker >= v7.5.0 with jq installed) the generated cmdrc contains

89  debugnote "cmdrc: Running container command:
90    /bin/bash"
91  "/entrypoint.sh  'bash'"
92
93  /bin/bash"
94  "/entrypoint.sh  'bash'
95
96  storeinfo cmdexitcode=$?

which fails with

/x11docker/cmdrc: 91: /entrypoint.sh  'bash': not found
/x11docker/cmdrc: 94: /bin/bash
/entrypoint.sh: not found
@mackworthy
Copy link

I think this is related to #485

@mviereck mviereck added the bug label Apr 10, 2023
@mviereck
Copy link
Owner

Thank you for the report!
I'll check this.

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

Successfully merging a pull request may close this issue.

3 participants