Posts

Showing posts from February, 2026

docker_stuff

--- --- Docker Commands A. Image and Container Management docker pull <image_name>:<tag> pulls the image image_name tagged tag from Docker Hub docker run -p <host_port>:<container_port> --name <name> -v <volume>:<working_path> [-it|-d] <image_name>:<tag> - creates a container named name using the image image_name (pulls the image if not present in the local Docker registry on the system), maps the host port host_port onto the container’s port container_port , and mounts a volume onto the container where the data from the container willl be stored at working_path . Use -it for running it in n interactive terminal mode, or -d to run the container detached (spawn the container and run it without showing any output from it) docker exec [-it] <container_name> <path> : executes a certain process in the conatiner. Use -it for enabling interactive terminal (to access the container’s bash on the system shell) mode...