-
Notifications
You must be signed in to change notification settings - Fork 278
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
Fix typo in Docker example #890
Conversation
This typo breaks the Docker command, as `hsd` is expecting an `=`.
I have a server running it with |
Running the image here, As soon as I made it match every other config value is supposed to be passed in it started right up without issues. |
Tested again with the following code:
And it worked with or without the Also, checked bcfg and it seems to support both space or There's no harm in merging this PR, but I don't see how this could be root of the problem you faced, unless there's a bigger issue with |
Ah, perhaps it's a difference in how Docker Compose's Will share the format I used shortly that had issues. Edit: Here is the format I used that errored out: hsd:
image: ghcr.io/handshake-org/hsd:latest
restart: unless-stopped
container_name: hsd
volumes:
- hsd-data:/root/.hsd
ports:
- 127.0.0.1:12037:12037
- 12038:12038
- 127.0.0.1:12039:12039
- 44806:44806
command:
- "--http-host 0.0.0.0"
- "--api-key=foo" |
I think similar to Dockerfile CMD, the So if you want to use spaces in the compose file, then it should look like commands:
- "--http-host"
- "0.0.0.0"
- "--api-key"
- "foo" Or of course, like the previous comment, using This behaviour applies to any executable/program receiving arguments, not just hsd/bcfg. Since the current example in INSTALL.md is with docker CLI (and not Compose), I don't think it's wrong; space is perfectly acceptable. However, adding a new Compose example below this one would be helpful. It can use |
Good catch, @rithvikvibhu, has been so long since I used Will open a PR adding an example instead! |
Related PR: #891 |
This typo breaks the Docker command, as
hsd
is expecting an=
.