-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Harsh Chaurasiya edited this page Sep 29, 2021
·
9 revisions
docker build -t hypercall:v1 -f docker/production.dockerfile .
- -t :::> indicate tag name (ex. hypercall:v1)
- -f :::> provide path from which you wanna build the docker image
docker image ls -a
docker run -d hypercall:v1 ::>> It is not exposing the port that we have mentioned in the dockerfile for build
docker run -d -p 3000:3000 hypercall:v1
port_of_server:port_which_exposed_from_docker
- -d :::> indicated the detach mode
- hypercall:v1 :::> image tag we have provided while building the docker image
docker ps
docker logs b872d3c9c181 --tail 100 -f
- b872d3c9c181 ::> container id
- docker stop container_id
- docker rm container_id