Increasing Productivity with Docker Tips and Tricks
This chapter introduces miscellaneous tips, tricks, and concepts that are useful when containerizing complex distributed applications or when using Docker to automate sophisticated tasks. You will also learn how to leverage containers to run your whole development environment in them. Here is the list of topics we are going to discuss:
- Keeping your Docker environment clean
- Using a
.
dockerignore
file - Executing simple admin tasks in a container
- Limiting the resource usage of a container
- Avoiding running a container as
root
- Running Docker from within Docker
- Optimizing your build process
- Scanning for vulnerabilities and secrets
- Running your development environment in a container
After reading this chapter, you will have learned how to do the following:
- Successfully restore your Docker environment after it has been messed up completely
- Use a
.dockerignore
file to speed up builds...