Why you should use Docker?
Here are 6 reasons why I believe you should create a local server in Docker and use Docker instead of using old solutions such as XAMP or Vagrant.
1. Easy and quick tests
You can easily imagine, that you must implement new database software version in your project. Containers live independently, so if you need to implement new software, then you must create an only new container with new software and join to your project. Now can you tests your code. If you need, you can quickly back to the old version or easy implement new container to other projects. This is much faster and more convenient than copy virtual server every time.
2. Quickly create new development environment
Docker is effortless to configure. In “Docker Compose” tool can you set which software (server type, database etc.) want you to use in your project. In compose file can you set ports and folders where containers save data of our projects. You can use more advanced configuration too. Here can you read, how to create PHP development environment with Docker.
3. Saving resources
You’ll love Docker if you need use more virtual machines at the same time. Containers share hardware and kernel and do not burden the resources as virtual servers. For this reason, Docker needs less space and is much faster than virtual machines. More info find your here: https://www.docker.com/what-container
4. Deployment friendly
Deployment can be stressful. Even your code is almost entirely covered with tests, you can have problems with differences between local and production architecture. Docker solves this problem because you can easy change containers und imitate production server as your local server. Of course most comfortable is using Docker in production server but is it not necessary. You can use Docker only as local server and deployment to any server.
5. Documentation and community
Docker celebrated recently 4th Birthday (the idea of containers is much older). On the Docker Seite can you find excellent documentation. When you have any troubles ask you just community. Other users certainly will help you.
6. Cross Platform
Leave a comment if you have any question or have another reason to use Docker.