Dcocker is open-source centralized platform designed to create, deploy and run applications.
- Compatability/dependacies
- Long set up time
- Different dev/test/prod enviornment
-
-
- Wastage of resourses.
- Limitation on sharing resources.
- Each V.M have their own OS which makes them heavy and therefore it utilizes more space.
-
- Docker produces containers.
- container has all dependencies which is required to run the app and if it doesn't have any it will take from docker hub.
- Container does not have their own OS and hence they are light weight.
- They will use resourses from host OS only when they are running.
-
-
eg: docker run
<image name>
-
- List running containers:
eg: docker ps - List all containers:
eg: docker ps -a
- List running containers:
-
eg: docker stop
<container name/id>
-
eg: docker rm
<container name/id>
- eg: docker images
-
eg: docker rmi
<image name>
-
eg: docker pull
<image name>
-
eg: docker exec
<container name>
<command>
-
eg: docker inspect
<container name>
-
eg: docker logs
<conatiner name>
-
eg: docker run
-