4

1. Explain docker in layman's term (example to your Grandma)
2. Explain in detail why docker is good and fast compared to any related traditional virtualization like VirtualBox, vagrant, etc.
3. If you are going to migrate an existing Symfony application to Laravel from scratch, what will you migrate first in order to make it efficient. Model, view or controller? And why?

Comments
  • 2
    I'll give it a shot at points 1 and 2:

    1. You run programs in your computer. When you run Docker you run groups of programs exactly the same way, but they are isolated from the rest. They can have their own files, their own chunk of memory, their own network device and more. However, you don't virtualize anything: they don't run on virtual hardware, but on an isolated environment.

    2. Docker (and containers in general) can be better than VMs for many use cases. Most of the time, applications don't care about the physical (or virtual) hardware they run on, they only care about the environment: if certain files exist, if certain environment variables are set, things like that. And in those cases containers are better because they don't need to run a separate operating system, they don't need virtual hardware and initializing an environment is way faster than booting a machine. On the other hand, containers have their limitations. Docker can only run Linux applications, for example.
  • 1
    1) docker is a buncha small computers inside your computer

    2) its not

    3) first step is to rewrite in literally any other language
  • 1
    1) Developers write software on their laptop. When they’re done it needs to go to the cloud. Docker is one piece of software that helps us carry that software from a laptop to the Internet for you to use.

    2) Docker is a game changer. It’s like getting two hundred servers for the price of one. We can install our application multiple times and test out newer versions of the code before we release it to the general public. Once we have our code just the way we like it, we swap out one “docker container” for another container. It’s like a freight ship, one container gets unloaded, the next “pre-packed” container goes on the boat - and just like that your application is updated now.

    3) it might be time just to rewrite that thing from scratch.
Add Comment