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

crane run - specifying extra args for CMD, leads to unexpected error #366

Open
dreamcat4 opened this issue Jun 2, 2023 · 0 comments
Open

Comments

@dreamcat4
Copy link
Contributor

Not sure what is happening here, but the error message seems related to how crane must split out the arguments parsing into multiple other seperate docker commands. And is then encountering the error as a result.

example with extra args (=--noacl) for passing to docker run... as CMD

0.0s
θ65° [id:~/docker-images] [venv] master(+355/-29)+* ± crane run -v tvh --noacl
Reading configuration /home/id/docker-images/crane.yml
No default network will be setup as prefix is disabled.
Command will be applied to: tvh
If needed, also creates networks: dkr

Running container tvh-1685695995838 (ad-hoc) ...
--> docker create --env hts_gid=1616 --env LANGUAGE="en_GB" --env LANG=en_GB.utf8 --env LC_ALL=en_GB.utf8 --log-opt max-size=10m --log-opt max-file=2 --net dkr --restart always --rm --volume /Media/Tvh:/recordings --volume /shore/gibbo/TvShows:/recordings/tv --volume /Media/Deluge/TvShows:/recordings/id --volume /home/id/docker-images/tvh/config.current:/config --name tvh-1685695995838 dreamcat4/tvheadend --noacl
docker: Conflicting options: --restart and --rm.
See 'docker create --help'.
ERROR: exit status 125
θ64° [id:~/docker-images] [venv] master(+355/-29)+* 125 ± 

example without extra args

θ65° [id:~/docker-images] [venv] master(+355/-29)+* 125 ± crane run -v tvh
Reading configuration /home/id/docker-images/crane.yml
No default network will be setup as prefix is disabled.
Command will be applied to: tvh
If needed, also creates networks: dkr

Removing container tvh ...
--> docker rm tvh
tvh
Running container tvh ...
--> docker create --env hts_gid=1616 --env LANGUAGE="en_GB" --env LANG=en_GB.utf8 --env LC_ALL=en_GB.utf8 --ip 192.168.17.3 --log-opt max-size=10m --log-opt max-file=2 --net dkr --restart always --volume /Media/Tvh:/recordings --volume /shore/gibbo/TvShows:/recordings/tv --volume /Media/Deluge/TvShows:/recordings/id --volume /home/id/docker-images/tvh/config.current:/config --name tvh dreamcat4/tvheadend
--> docker start tvh
tvh
θ64° [id:~/docker-images] [venv] master(+355/-29)+* ± 
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