Posts

Showing posts with the label Container

Docker

Image
Docker container Vs Virtual Machine Docker Architecture: Workflow: Basic Concepts - Registry - Repository - Tag  - Image - Containers. Registry/ Repository : https://hub.docker.com is a public registry and it contains many repositories. For Eg:   https://hub.docker.com/r/ in28min/todo-rest-api-h2 (Highlighted one is the repository). Tags : In the repository, there will a different versions of an image.      For Eg:       docker run in28min/todo-rest-api-h2: 1.0.0.RELEASE Image : A static template - A set of bytes Container : Running version of your image ========================================================================== Install docker :  https://docs.docker.com/desktop/  ========================================================================== Docker commands Run a docker image :     docker run -p 5000:5000 in28min/todo-rest-api-h2:1.0.0.RELEASE          -p 5000:5000 => {host po...