Giter Club home page Giter Club logo

Comments (3)

EdwinVW avatar EdwinVW commented on August 17, 2024

Hi @findkashif

Thanks for finding and registering this issue. Microsoft has moved their Docker images to a different registry (mcr.microsoft.com). So the the image for SQL Server on Linux should be changed.

I fixed this in commit e689b4c. Please pull the latest version of the repo and try again.

from pitstop.

CodeWithKashif avatar CodeWithKashif commented on August 17, 2024

Thanks a lot for your quick response and fix. Yes it is working fine now!

I have following questions here and I want to learn it from your experience:

  1. This is a bit common issue I have had seen with docker images that Microsoft (or any other owner) may change their location/tags etc. so this may cause defect on a live system too.
    What is the best way to handle or avoid this with applications running in production.

  2. I also suspected this issue that either its tag is changed or it is moved to some other location etc.
    However I was unable to find the actual issue and its solution.
    So in future something similar happens then how should I trace and fix this.

  3. Also in docker world many times I struggle around what is right base image, which version and tag should i use. I find it bit confusing.

from pitstop.

EdwinVW avatar EdwinVW commented on August 17, 2024
  1. When images are running in production, their image is already present and it shouldn't be an issue. In your dev/test/acceptance environment, you can tackle this by always building the environment from scratch. Then you find the issue there and can fix it before it goes through to production.

  2. Always check out Docker Hub first. As you can see with the SQL Server on Linux images, they can still be found on Docker Hub but the registry is mcr.microsoft.com.

  3. Always check the documentation of the base images. Often, the publisher describes the specific use-cases for different base-images. Sometimes a base image is completely stripped and only contains core functionality to yield a smaller image. But if you need more features, you might need to pick a bigger base image that contains those features. If you look at the .NET base images, some contain the entire .NET SDK (for building the software) and others only contain the .NET runtime for production. In Pitstop I use both base images in what is called a multi-stage Docker build. The actual image that will be used for running the container only contains the .NET runtime and is therefore a lot smaller. So unfortunately, there's no single answer to your question ... it depends.

from pitstop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.