Comments (1)
Hello @xandermann
I was actually having the exact same issue,
I had another server with a hosted PWD that was working as expected. (I deployed it a year ago)
I decided to use the same golang docker image (golang:1.20.4) (which was the latest at the time) I was using for that working server and it worked on my new server
docker-compose.yml
version: '3.2'
services:
haproxy:
container_name: haproxy
image: haproxy
ports:
- "80:8080"
volumes:
- ./haproxy:/usr/local/etc/haproxy
pwd:
# pwd daemon container always needs to be named this way
container_name: pwd
# use the latest golang image
image: golang:1.20.4
# go to the right place and starts the app
command: /bin/sh -c 'ssh-keygen -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key >/dev/null; cd /go/src/; if [ -e /runbin/pwd ]; then /runbin/pwd -save /pwd/sessions -name l2; else go run api.go -save /pwd/sessions -name l2; fi'
volumes:
# since this app creates networks and launches containers, we need to talk to docker daemon
- /var/run/docker.sock:/var/run/docker.sock
# mount the box mounted shared folder to the container
- $PWD:/go/src
- sessions:/pwd
l2:
container_name: l2
# use the latest golang image
image: golang:1.20.4
# go to the right place and starts the app
command: /bin/sh -c 'ssh-keygen -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key >/dev/null; cd /go/src/router/l2; if [ -e /runbin/l2 ]; then /runbin/l2 -ssh_key_path /etc/ssh/ssh_host_rsa_key -name l2 -save /pwd/networks; else go run l2.go -ssh_key_path /etc/ssh/ssh_host_rsa_key -name l2 -save /pwd/networks; fi'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- $PWD:/go/src
- `networks:/pwd`
ports:
- "8022:22"
- "8053:53"
- "443:443"
volumes:
sessions:
networks:
I don't know if with the latest golang image has worked for other people, but at least for me, it has not.
Cheers and I hope this also solves yours
Jorluis
from play-with-docker.
Related Issues (20)
- Play With Docker Used To Play Nicely In Tor; It Don't Wanna Play No More⦠HOT 1
- upload file fail HOT 3
- Settings HOT 1
- Unauthorized Code Execution on the host [Play-with-Docker] HOT 3
- PWD unavailable
- Where to get support for - https://labs.play-with-docker.com - in here?
- https://labs.play-with-k8s.com/ down
- Docker Playground is not working HOT 1
- OAuth Error
- Can't log in with docker
- Got 500 when I try to add the PWD button into my readme HOT 4
- jsdelivr pwd.js missing, breaking play-with-kubernetes.com HOT 2
- Port exposed on PWD doesn't work #544 HOT 1
- Run some scripts HOT 1
- Passing a container as a parameter? HOT 1
- When I click on start, it says "We are really sorry but we are out of capacity and cannot create your session at the moment. Please try again later." HOT 1
- unable to pull images from docker hub HOT 2
- Is there restriction on external request? HOT 1
- Port exposed not working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-with-docker.