saukumar95 / spring-docker

0 stars 0 forks source link

How this project identifies it as something to convert to docker image ? #1

Open Nish-Hub opened 4 years ago

Nish-Hub commented 4 years ago

How does the project know it has to convert it to docker . I saw the source code. It looks like any other spring boot project with normal crud . Is it the docker file with the 4 lines of command which the spring boot automatically invokes to convert it to a docker image ?

saukumar95 commented 4 years ago

Nishant in this project we have to manually create docker image by run docke command and when we run docker command on a project it checks for dockerfile and that way it create docker image i have steps for that noted that how can we create it.

Nish-Hub commented 4 years ago

Ohh cool . Any link for these commands I can follow ?

saukumar95 commented 4 years ago

Will provide you here.

saukumar95 commented 4 years ago

Some useful commands of docker:

1. docker start <container_name>
2. docker stop <container_name>
3. docker images
4. docker container ls
5. docker logs <container_name>
6. docker container rm <container_name>
7. docker image rm <image_name>