Datapotomus Posted April 17, 2017 Share Posted April 17, 2017 Can someone tell me how to set additional flags in the web UI for docker containers that go after the run. An example I am trying to run is this: docker run -d --name ethereum-node -v /Users/alice/ethereum:/root \ -p 8545:8545 -p 30303:30303 \ ethereum/client-go --fast --cache=512 However, when I add them to the extra parameters option in the web UI it looks like it tries to run them before the container. I receive this error when attempting to put them in the extra parameters field. root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="ethereum-node" --net="host" -e TZ="America/New_York" -e HOST_OS="unRAID" -e "TCP_PORT_8545"="8545" -e "TCP_PORT_30303"="30303" -v "/mnt/user/perm/docker_apps/ethereum-node/":"/root":rw "--cache=512" ethereum/client-go unknown flag: --cache See 'docker run --help'.The command failed. So it looks like the extra parameter feild seems to set it before hand not after like I need it. Quote Link to comment
bonienl Posted April 17, 2017 Share Posted April 17, 2017 --cache is not an option which you can include with the docker run command. See here: https://docs.docker.com/engine/reference/commandline/run/#options for the available options. Quote Link to comment
Datapotomus Posted April 17, 2017 Author Share Posted April 17, 2017 Sorry if I wasn't clear enough. What I am trying to say is how do you set additional options via the webui that you would need to run after the container. Like they have in the example. How would I pass the bolded parameters to the container from the webUI. ethereum/client-go --fast --cache=512 Quote Link to comment
JonathanM Posted April 17, 2017 Share Posted April 17, 2017 5 minutes ago, Datapotomus said: What I am trying to say is how do you set additional options via the webui that you would need to run after the container. You can't. As a workaround, try placing the options at the end of the repository field. 1 Quote Link to comment
Datapotomus Posted April 18, 2017 Author Share Posted April 18, 2017 Thanks. That worked. Quote Link to comment
JonathanM Posted April 18, 2017 Share Posted April 18, 2017 1 hour ago, Datapotomus said: Thanks. That worked. Yeah, sort of. You will need to remove those additions to successfully pull an update, then put them back when you are done. I'm not happy with the workaround, but it is what it is. Quote Link to comment
technomancer__ Posted August 26, 2019 Share Posted August 26, 2019 On 4/18/2017 at 12:17 AM, jonathanm said: You can't. As a workaround, try placing the options at the end of the repository field. i just get the command failed and the docker becomes and orphan image this way Quote Link to comment
technomancer__ Posted August 26, 2019 Share Posted August 26, 2019 22 minutes ago, technomancer__ said: i just get the command failed and the docker becomes and orphan image this way found how to do it go to your docker, advanced view and add the flag in extra parameters 1 Quote Link to comment
JonathanM Posted August 26, 2019 Share Posted August 26, 2019 3 hours ago, technomancer__ said: i just get the command failed and the docker becomes and orphan image this way Because you were following advice that was valid over 2 years ago, and has since been superseded by a proper implementation. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.