Comments (4)
Oops. My bad, way bad.
$ docker run -p 8080:80 <yourWeAppName>
# Got to add the port for command line docker run.
Profuse apologies.. Please close. I'm still not thinking about the differences between writing images but running containers. EXPOSE ports is only half of the conversation.
from node-docker-good-defaults.
no worries @zipzit but ideally for local dev you're using docker-compose
cli which is much easier with the docker-compose.yml
then raw docker commands. docker-compose up
will open the local port and much more.
from node-docker-good-defaults.
I understand a whole lot more, now. Here's the details.
from node-docker-good-defaults.
Good info, thanks for documenting it.
from node-docker-good-defaults.
Related Issues (20)
- Add compose sync example, maybe as default
- Explain role and use of file_env function in docker-entrypoint.sh HOT 1
- Can't install dependencies HOT 2
- How to get app code to see /opt/node_modules HOT 2
- Cannot find node_modules HOT 2
- node-docker-good-defaults_node_1 exited with code 1 HOT 3
- Calling workdir twice HOT 2
- About vscode debugging HOT 3
- Bind mountings not working as expected HOT 2
- nodemon app crashed HOT 3
- Starting inspector on 0.0.0.0:9229 failed: address already in use HOT 3
- Question: Where to put app config files? HOT 1
- Is the recommended version still version 2? HOT 2
- Code as root, but node_modules have node user HOT 3
- Kubernetes support? HOT 1
- Failing test after following the README.md instruction
- Use npm ci instead of npm install? HOT 3
- EACCESS on `docker-compose exec node npm i <package>` HOT 2
- [Feature] Add Good practices for "Remote - Containers - VS Code" HOT 1
- Is there some updates? HOT 1
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 node-docker-good-defaults.