Introduction to Docker: Difference between revisions
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
* Kernel is shared between containers. | * Kernel is shared between containers. | ||
* Kernel has built-in support for containers. | * Kernel has built-in support for containers. | ||
== Benefits over virtualisation == | |||
* More sharing between containers means less duplicated code (e.g. kernel). | |||
* Shorter start and stop times. | |||
== Installing Docker == | == Installing Docker == |
Revision as of 12:55, 26 September 2019
Talk to be given at ManLUG at some point in the future, possibly November 2019.
Separation of sites
Hardware
- Most robust level of separation.
- Good option for clients who are large enough to warrant their own server anyway.
Virtualisation
- From the operating system point of view, almost the same as hardware (it is sometimes possible to work out that an OS is running on virtualised hardware as opposed to the physical hardware).
- Separate by directories and users.
- Causes problems if web server does not run as same user as the site owner.
- Often possible to access other users' data via vulnerabilities, shared directories (e.g.
/tmp
for sessions).
Containers
- Sits between shared hosting and virtualisation.
- Lower overheard than virtualisation.
- Kernel is shared between containers.
- Kernel has built-in support for containers.
Benefits over virtualisation
- More sharing between containers means less duplicated code (e.g. kernel).
- Shorter start and stop times.
Installing Docker
- Use the upstream repositories rather than your distribution, as new versions are released frequently.
docker help
- like many command line tools, Docker offers general help as well as specific subcommands