O'Reilly logo

Docker for Developers, 2nd Edition by Chris Tankersley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4 Creating Custom Images

Thus far we have been using images that have been created by either Docker or the community, through the Docker Hub. These images were pre-built to handle a specific problem, such as running PHP, a web server, a database server, composer, etc. There is noting inherintly wrong with these image and, as far as general containers go, many will be good enough for what we need.

There will come a time where you either do not like how an image is set up, like the nginx or the MySQL container, or you need specialized setups. A good example is the MySQL image. An older version of it was nearly 2.5 gigabytes of space because the maintainer did not remove all the source code (the new version clocks in at a much more managable 350 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required