Linux technical support -

docker best practice

  • Avoid storing application data in your container’s

  • Use official ready to use images

Start with an appropriate base image. For instance, if you need a JDK, consider basing your image on the official openjdk image, rather than starting with a generic ubuntu image

  • Use multistage builds

For instance, you can use the maven image to build your Java application, then reset to the tomcat image

  • Tag image correct

When building images, always tag them with useful tags which codify version information, intended destination (prod or test

  • Docker containers are a key enabling technology for microservices



Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>