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

Unable containerize with docker #182

Open
yhojann-cl opened this issue Aug 23, 2024 · 0 comments
Open

Unable containerize with docker #182

yhojann-cl opened this issue Aug 23, 2024 · 0 comments

Comments

@yhojann-cl
Copy link

Have a single Dockerfile:

FROM python:3
RUN mkdir -p /files
COPY ./prod.keys /root/.switch/prod.keys
RUN pip3 install --upgrade nsz

And try run it using:

$ sudo docker build -t nsz:latest .;
$ sudo docker create --name nsz -v ./files:/files nsz:latest;
$ sudo docker run --rm -it --entrypoint bash 'nsz -x /files/input.nsz -o /files/' nsz;

But says:

import-im6.q16: unable to open X server `' @ error/import.c/ImportImageCommand/346.
import-im6.q16: unable to open X server `' @ error/import.c/ImportImageCommand/346.
/usr/local/bin/nsz: line 5: from: command not found
/usr/local/bin/nsz: nsz: line 7: syntax error near unexpected token `('
/usr/local/bin/nsz: nsz: line 7: `    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
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

1 participant