Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 839 Bytes

docker_command.md

File metadata and controls

32 lines (22 loc) · 839 Bytes

Docker command to build Image

docker build -t industrial_problem:1.0 .

Docker command to view Images

docker images

Docker command to Delete Images

docker image rm -f bb3bc2fd1552 890cae6fd09b

Docker command to view Docker version

docker version

Docker command to check if yaml file is OK

docker-compose config

Docker command to run yaml file

docker-compose up -d

Docker command to see which docker containers are running

docker ps

Docker command to get inside the container

docker exec -it custom_mysql_cont_1 bash

To exit the Docker container do

exit

Docker command to stop the execution of yaml file

docker-compose down

Docker command to remove any containers that are not associated with a service defined in the current compose file

docker-compose down --remove-orphans