Docker
Docker
Docker
• In order to achieve this they originally used LXC (LinuX Containers) but later moved
to runC (aka libcontainer).
• AuFS is a layered file system, so you can have a read only part and a write part
which are merged together. One could have the common parts of the operating
system as read only (and shared amongst all of your containers) and then give each
container its own mount for writing.
Virtual Machines
• A full virtualized system gets its own set of resources allocated to it, and does
minimal sharing.
• You get more isolation, but it is much heavier (requires more resources). With
docker you get less isolation, but the containers are lightweight (require fewer
resources).
Docker provides the ability to package and run an application in a loosely isolated
environment called a container. The isolation and security allow you to run many
containers simultaneously on a given host.
A REST API which specifies interfaces that programs can use to talk to the daemon and
instruct it what to do.
Docker Commands:
$ docker version
$ docker –v
MYSQL DB:
-d mysql:5.7
Creating a docker image from the Spring Boot Application using the Dockerfile.
$ docker container ls