---
title: "Building an Application in Docker while Offline"
url: https://daily.dev/posts/building-an-application-in-docker-while-offline-050r6zato
source_url: https://nodogmablog.bryanhogan.net/2024/09/building-an-application-in-docker-while-offline
type: article
source: "No Dogma Blog (Bryan Hogan)"
published: 2026-05-31T07:46:39.631Z
updated: 2026-05-31T09:29:26.969Z
tags: ["docker", ".net", "containers"]
reading_time: 3
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Building an Application in Docker while Offline

**[No Dogma Blog \(Bryan Hogan\)](https://daily.dev/sources/bryanhogan)** · 3 min read · 0 upvotes · 0 comments

## Summary

When building a containerized .NET application offline, Docker fails even if all image layers are cached locally, because it still needs to fetch remote metadata to verify image manifests. The fix is to explicitly run `docker pull` for each base image referenced in the Dockerfile (e.g., `mcr.microsoft.com/dotnet/sdk:8.0` and `mcr.microsoft.com/dotnet/aspnet:8.0`) while online. This registers the images in the local image list without re-downloading layers, allowing offline builds to succeed.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nodogmablog.bryanhogan.net/2024/09/building-an-application-in-docker-while-offline>

## Similar posts on daily.dev

- [Containerize Your .NET Applications Without a Dockerfile](https://daily.dev/posts/containerize-your-net-applications-without-a-dockerfile-1qk5lm6ob) · Milan Jovanović · 19 upvotes · 0 comments

---

Tags: [#docker](https://daily.dev/tags/docker), [#.net](https://daily.dev/tags/.net), [#containers](https://daily.dev/tags/containers)

[View this post on daily.dev](https://daily.dev/posts/building-an-application-in-docker-while-offline-050r6zato)
