question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

docker + dat deployment

See original GitHub issue

Current status on docker + dat networking troubleshooting. This is a general issue to keep visibility and update progress, not related directly to cli.

We’re still having trouble accessing exposing ports directly.e.g.:

docker run -d --name some-image -p 3282 -p 3282/udp

We had an issue with using IPTables before (#503), which docker uses. So it may be related to that, not Docker directly. This is what some of our IPTables rules (generated via docker) look like:

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination         
MASQUERADE  tcp  --  172.19.0.7           172.19.0.7           tcp dpt:3282
MASQUERADE  udp  --  172.19.0.7           172.19.0.7           udp dpt:3282

Chain DOCKER (2 references)
target     prot opt source               destination         
DNAT       tcp  --  anywhere             anywhere             tcp dpt:32769 to:172.19.0.7:3282
DNAT       udp  --  anywhere             anywhere             udp dpt:32768 to:172.19.0.7:3282

See also:

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:23 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
mitarcommented, Feb 22, 2018

I think you are running it wrong. If you just do -p 3282 then the host port will be randomly chosen. Which means that port dat inside will think it has will be different on the outside.

I am running hypercored inside Docker using -p 3282:3282/tcp -p 3282:3282/udp and it works perfectly.

2reactions
rjsteinertcommented, Jul 31, 2018

Thanks @maxogden I saw your status from two years ago to remind us two years in the future 😃 https://twitter.com/maxogden/status/913874394421719040

This issue that @joehand references at the top may be the issue you are thinking of https://github.com/datproject/dat/issues/841

For the time being I’m mounting a volume and running dat-party (https://github.com/rjsteinert/dat-party) on the host machine so that any folder the container places in that volume will be shared as a Dat Archive from the host machine without having to punch through Docker NAT. It’s a funny workaround.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker Deployment - OpenMetadata Docs
This command will pull the docker images of Openmetadata for MySQL, OpenMetadat-Server, OpenMetadata-Ingestion and Elasticsearch. Upon running this command you ...
Read more >
Manage data in Docker - Docker Documentation
Docker has two options for containers to store files on the host machine, so that the files are persisted even after the container...
Read more >
adlawson/docker-dat: Dat server in Docker - GitHub
This is a simple Docker container for Dat. It's pre-configured to run a Dat server, useful for simple inspection and HTTP access to...
Read more >
Docker Deployment - How to Deploy a Web app With Docker?
This article discusses what is docker deployment, how it differs from other virtual machines, and why you should use it for your software....
Read more >
How to: Production Deployment With Docker - Pluralsight
Docker is a great tool for developing applications. ... downtime for your application should be the de facto standard in this day and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found