Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How I can expose extra ports in my digital ocean docker container?
I deployed docker container used service “APP - > Docker Hub” (not a droplet).
For image I used https://hub.docker.com/r/linuxserver/code-server with code-server.
When I was configuring container, I could expose only one port - port 8443.
I wanna use that container for remoute web development.
And I need some open ports like 3000, 5000 and etc.
When I deployed that image on my own local docker server I used docker-compose file, where added neccesary extra ports
I search for answer on a forum, and found only that.
But there is a little bit something else.
1)How I can expose extra ports in my digital ocean docker container?
2)Or I have to deploy droplet, install there docker and deploy my yaml docker-compose file
3)Or I have to deploy droplet and install there code-server directly.
4)And why in the marketplace isn’t pre-built Droplet image with a code-server? Or may be I could not find that one.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×