docker + dat deployment
See original GitHub issueCurrent 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:
- #841 (may not be docker related)
- exposing docker ports
- docker networking
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:23 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.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.