Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Use Official images with tag specific and avoid the latest tag: -

Sumit Rawal answered on May 13, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • alternative image in img tag
  • picture tag
  • picture tag
  • picture tag
  • a tag displays below img tag
  • next doesnt show img tag

  • Use Official images with tag specific and avoid the latest tag: -

    0

    Docker images have a tag named latest which doesn’t work as you expect. A tag is an alias for a specific image version. One of the biggest confusions around the tagging is the “latest” tag. It’s in theory used for the latest image version available but because it’s manually managed, we have no guarantee it’s really the case. Maybe the maintainer manages the latest tag in his own way or just forgot to update the tag. Also, using a fixed tag like “latest” mean that the image version can change and so rebuilding an image can bring some side effects. It’s recommended to use a specific tag like the image version. This version is upgraded when you are ready with a proper life cycle management.

    Example: -

    FROM ubuntu

    COPY . /app

    RUN apt-get update\

    && apt-get -y install openjdk-8

    CMD [“java”, “-jar”, “/app/app.jar”]

    Instead use this image

    FROM openjdk-8

    COPY . /app

    CMD [“java”, “-jar”, “/app/app.jar”] 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on May 13 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.