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

update README for tutorial #52

Merged
merged 1 commit into from
Jan 6, 2021
Merged

Conversation

blue0513
Copy link
Collaborator

@blue0513 blue0513 commented Jan 6, 2021

Problem

Run dsps server by docker run

$ docker run --rm -p 3000:3099/tcp saiya/dsps:latest
$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                              NAMES
cd0d7f0ad77f        saiya/dsps:latest   "./dsps"                 9 minutes ago       Up 9 minutes        3000/tcp, 0.0.0.0:3000->3099/tcp   adoring_zhukovsky

But curl failed

$ curl -X PUT "http://localhost:3099/channel/${CHANNEL}/subscription/polling/${SUBSCRIBER}"
curl: (7) Failed to connect to localhost port 3099: Connection refused

Solution

Fix -p option usage.

docker run --rm -p 3099:3000/tcp saiya/dsps:latest

After that, we can access webserver running on port 3000 by curl -X PUT "http://localhost:3099"

@@ -30,7 +30,7 @@ Note that DSPS does **NOT** aim to provide followings:

```sh
# Download & run DSPS server
docker run --rm -p 3000:3099/tcp saiya/dsps:latest
docker run --rm -p 3099:3000/tcp saiya/dsps:latest
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. Thanks.

@saiya saiya enabled auto-merge January 6, 2021 06:29
@saiya saiya disabled auto-merge January 6, 2021 06:29
@saiya saiya merged commit fb58979 into saiya:main Jan 6, 2021
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

Successfully merging this pull request may close these issues.

2 participants