I am currently trying out this tutorial for
node express with
the first part works fine where to build the
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
so I tried to push it to my dockerhub and I also tag it as
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?
Thanks in advance