I am currently trying out this tutorial for node express
with mongodb
https://medium.com/@sunnykay/docker-development-workflow-node-express-mongo-4bb3b1f7eb1e
the first part works fine where to build the docker-compose.yml
it works totally fine building it locally so I tried to tag it and push into my dockerhub
to learn and try more.
this is originally what's in the yml
file followed by the tutorial
version: "2"
services:
web:
build: .
volumes:
- ./:/app
ports:
- "3000:3000"
this works like a charm when I use docker-compose build
and docker-compose up
so I tried to push it to my dockerhub and I also tag it as node-test
I then changed the yml
file into
version: "2"
services:
web:
image: "et4891/node-test"
volumes:
- ./:/app
ports:
- "3000:3000"
then I removed all images I have previously to make sure this also works...but when I run docker-compose build
I see this message error: web uses an image, skipping
and nothing happens.
I tried googling the error but nothing much I can find.
Can someone please give me a hand?