# Docker

**URL:** https://forums.swift.org/c/server/docker/40.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [About the Docker category](https://forums.swift.org/t/about-the-docker-category/15489)

<div class="topic-metadata">

**Author:** [@Nicole\_Jacque](https://forums.swift.org/u/Nicole_Jacque)\
**Replies:** 0

</div>

This category is for discussion of development and content for the Swift Docker images.

---

## [Debian Trixie etc](https://forums.swift.org/t/debian-trixie-etc/87026)

<div class="topic-metadata">

**Author:** [@tkrajacic](https://forums.swift.org/u/tkrajacic)\
**Replies:** 2\
**Last updated:** [July 14, 2026, 10:59am UTC](https://forums.swift.org/t/debian-trixie-etc/87026 "2026-07-14T10:59:53Z")

</div>

So it is almost a year since Debian Trixie has been released, and Swift still doesn't have official Docker images. I am not posting this to complain, but rather to ask the question: Who is responsible for driving Swift …

---

## [Foundation Locale.current is incorrect](https://forums.swift.org/t/foundation-locale-current-is-incorrect/77231)

<div class="topic-metadata">

**Author:** [@mredig](https://forums.swift.org/u/mredig)\
**Replies:** 7\
**Last updated:** [June 24, 2026, 6:22am UTC](https://forums.swift.org/t/foundation-locale-current-is-incorrect/77231 "2026-06-24T06:22:45Z")

</div>

I'm writing a server app with swift and deploying with podman (basically a drop-in replacement for docker). I've noticed that, for timestamps to render correctly in html output, I need to set the container's timezone. E…

---

## [Why should I use Apple's \`container\`?](https://forums.swift.org/t/why-should-i-use-apples-container/86516)

<div class="topic-metadata">

**Author:** [@MahdiBM](https://forums.swift.org/u/MahdiBM)\
**Replies:** 13\
**Last updated:** [June 12, 2026, 7:43pm UTC](https://forums.swift.org/t/why-should-i-use-apples-container/86516 "2026-06-12T19:43:40Z")

</div>

I've watched the WWDC 2025 Meet Containerization session and the Swift for Low-Level Container infrastructure talk in last year's Swift-Server conference, but I have yet to have a good idea about some concrete advantages…

---

## [How to troubleshoot upgrading Docker and Swift deployments?](https://forums.swift.org/t/how-to-troubleshoot-upgrading-docker-and-swift-deployments/84062)

<div class="topic-metadata">

**Author:** [@Jared\_Sorge](https://forums.swift.org/u/Jared_Sorge)\
**Replies:** 7\
**Last updated:** [January 12, 2026, 9:07am UTC](https://forums.swift.org/t/how-to-troubleshoot-upgrading-docker-and-swift-deployments/84062 "2026-01-12T09:07:56Z")

</div>

I have my own blog engine, written in Swift using Vapor. I'm trying to update it to the latest versions of its dependencies including Swift. Last night I was able to update it to use Swift 6.2 (shipping with Xcode 26.2),…

---

## [How to validate the integrity of the docker images?](https://forums.swift.org/t/how-to-validate-the-integrity-of-the-docker-images/82916)

<div class="topic-metadata">

**Author:** [@yeikel](https://forums.swift.org/u/yeikel)\
**Replies:** 7\
**Last updated:** [November 5, 2025, 2:13am UTC](https://forums.swift.org/t/how-to-validate-the-integrity-of-the-docker-images/82916 "2025-11-05T02:13:35Z")

</div>

Hi team, Based on my understanding, we can use your signing key, which allows us to verify the integrity of the tarballs. However, I am unsure how we can validate the Docker images. The source code does not appear to i…

---

## [De minimis server Containerfile for a Musl-based statically linked web app](https://forums.swift.org/t/de-minimis-server-containerfile-for-a-musl-based-statically-linked-web-app/81887)

<div class="topic-metadata">

**Author:** [@carlynorama](https://forums.swift.org/u/carlynorama)\
**Replies:** 15\
**Last updated:** [August 31, 2025, 8:56pm UTC](https://forums.swift.org/t/de-minimis-server-containerfile-for-a-musl-based-statically-linked-web-app/81887 "2025-08-31T20:56:26Z")

</div>

I have a 40MB 197MB statically compiled binary based on a Hummingbird server nabbed from the swift-container-plugin examples. (handy plugin, btw!) I made a Containerfile for it based on Alpine (MUSL compliant) that I'd …

---

## [Nightly-noble and nightly-6.1-noble containers](https://forums.swift.org/t/nightly-noble-and-nightly-6-1-noble-containers/76395)

<div class="topic-metadata">

**Author:** [@xtremekforever](https://forums.swift.org/u/xtremekforever)\
**Replies:** 4\
**Last updated:** [December 15, 2024, 6:52pm UTC](https://forums.swift.org/t/nightly-noble-and-nightly-6-1-noble-containers/76395 "2024-12-15T18:52:58Z")

</div>

If I go to Swift.org - Install Swift and look at the Development Snapshots section, I see that there are links for nightly-noble and nightly-6.1-noble containers here. However, if I follow the link and look in the contai…

---

## [Vapor: failed to fetch an image or build from source](https://forums.swift.org/t/vapor-failed-to-fetch-an-image-or-build-from-source/74942)

<div class="topic-metadata">

**Author:** [@pbalduz](https://forums.swift.org/u/pbalduz)\
**Replies:** 3\
**Last updated:** [October 2, 2024, 12:36pm UTC](https://forums.swift.org/t/vapor-failed-to-fetch-an-image-or-build-from-source/74942 "2024-10-02T12:36:54Z")

</div>

Hey there! I'm a bit new into Swift on the server and I'm trying to deploy a Vapor app to Fly.io platform. Vapor's template with default Dockerfile works fine and I was able to deploy a version and use it. The problem c…

---

## [Multi-architecture docker example with static Linux SDK](https://forums.swift.org/t/multi-architecture-docker-example-with-static-linux-sdk/74751)

<div class="topic-metadata">

**Author:** [@Cyberbeni](https://forums.swift.org/u/Cyberbeni)\
**Replies:** 0\
**Last updated:** [September 19, 2024, 4:42pm UTC](https://forums.swift.org/t/multi-architecture-docker-example-with-static-linux-sdk/74751 "2024-09-19T16:42:42Z")

</div>

I'm planning on writing a small utility tool for my home server, so I looked into building docker images and using the new static Linux SDK. This is my first time writing a Dockerfile, if you have any suggestions, please…

---

## [\[lambda\] development of runtime v2 started](https://forums.swift.org/t/lambda-development-of-runtime-v2-started/74423)

<div class="topic-metadata">

**Author:** [@sebsto](https://forums.swift.org/u/sebsto)\
**Replies:** 0\
**Last updated:** [September 6, 2024, 4:38pm UTC](https://forums.swift.org/t/lambda-development-of-runtime-v2-started/74423 "2024-09-06T16:38:59Z")

</div>

Hello We merged a first stream of commits on the main branch of the Swift Runtime for AWS Lambda. The version 2 drivers, motivations, and design is available for review and discussion as a pull request here If you rel…

---

## [Why are docker images split between two orgs?](https://forums.swift.org/t/why-are-docker-images-split-between-two-orgs/73900)

<div class="topic-metadata">

**Author:** [@rauhul](https://forums.swift.org/u/rauhul)\
**Replies:** 11\
**Last updated:** [August 20, 2024, 5:28pm UTC](https://forums.swift.org/t/why-are-docker-images-split-between-two-orgs/73900 "2024-08-20T17:28:03Z")

</div>

As the title suggests, is there a rational for why the swift docker images are split between swift and swiftlang/swift? The difference makes writing docker files, actions, etc feel unnecessarily complicated. e.g. ima…

---

## [Amazon linux 2023 support?](https://forums.swift.org/t/amazon-linux-2023-support/66209)

<div class="topic-metadata">

**Author:** [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Replies:** 9\
**Last updated:** [July 5, 2024, 2:29pm UTC](https://forums.swift.org/t/amazon-linux-2023-support/66209 "2024-07-05T14:29:23Z")

</div>

Amazon linux 2 is going to be superseded by Amazon linux 2023 (AL2023). but all of the swift docker images for Amazon linux are still for AL2. when will we get docker images for AL2023?

---

## [Swift 6 in Linux containers](https://forums.swift.org/t/swift-6-in-linux-containers/72826)

<div class="topic-metadata">

**Author:** [@tangentsoft](https://forums.swift.org/u/tangentsoft)\
**Replies:** 6\
**Last updated:** [June 29, 2024, 1:47pm UTC](https://forums.swift.org/t/swift-6-in-linux-containers/72826 "2024-06-29T13:47:10Z")

</div>

This Linux + static binaries + containers stuff seems aimed at the development segment served by Go, but on trying to get started with it, it looks like things aren't ready. I came here expecting to find a community posi…

---

## [Moving from python to swift using docker](https://forums.swift.org/t/moving-from-python-to-swift-using-docker/72132)

<div class="topic-metadata">

**Author:** [@sderuiter](https://forums.swift.org/u/sderuiter)\
**Replies:** 19\
**Last updated:** [June 17, 2024, 5:44pm UTC](https://forums.swift.org/t/moving-from-python-to-swift-using-docker/72132 "2024-06-17T17:44:55Z")

</div>

I'm running several Python programs (that feed a db) using Docker, running on Ubuntu containers. As these programs have little to no dependencies, I would like to port these to Swift programs (speed gains as a first win…

---

## [Does Concurrency Work in Docker?](https://forums.swift.org/t/does-concurrency-work-in-docker/72235)

<div class="topic-metadata">

**Author:** [@sobabear](https://forums.swift.org/u/sobabear)\
**Replies:** 5\
**Last updated:** [June 6, 2024, 5:24am UTC](https://forums.swift.org/t/does-concurrency-work-in-docker/72235 "2024-06-06T05:24:51Z")

</div>

my docker file is # Use the official Swift image from the Docker Hub FROM swift:5.10 # Set a working directory inside the container WORKDIR /app # Copy the Package.swift and Sources directory into the container at /ap…

---

## [Vapor build with Docker takes too long](https://forums.swift.org/t/vapor-build-with-docker-takes-too-long/69032)

<div class="topic-metadata">

**Author:** [@caio](https://forums.swift.org/u/caio)\
**Replies:** 9\
**Last updated:** [March 5, 2024, 8:25pm UTC](https://forums.swift.org/t/vapor-build-with-docker-takes-too-long/69032 "2024-03-05T20:25:32Z")

</div>

Hi, I am using a MacBook Pro with an Apple chip to generate new builds with Vapor using Docker for deployment on Heroku. The build process currently exceeds 30 minutes, and I frequently encounter an error stating: 'error…

---

## [Docker image of linux/amd64 swift failing with \`invalid driver name: swift-driver\` on Mac M3?](https://forums.swift.org/t/docker-image-of-linux-amd64-swift-failing-with-invalid-driver-name-swift-driver-on-mac-m3/69392)

<div class="topic-metadata">

**Author:** [@lancejpollard](https://forums.swift.org/u/lancejpollard)\
**Replies:** 8\
**Last updated:** [February 18, 2024, 1:07pm UTC](https://forums.swift.org/t/docker-image-of-linux-amd64-swift-failing-with-invalid-driver-name-swift-driver-on-mac-m3/69392 "2024-02-18T13:07:40Z")

</div>

Cross-posting from How to install Swift lang using Docker on linux/amd64? Getting \`invalid driver name: swift-driver\`? - Stack Overflow for visibility. I saw the official Swift Dockerfile, for ubuntu:22.04, but it is no…

---

## [Build crash when building in QEMU using new Swift 5.6 arm64 image](https://forums.swift.org/t/build-crash-when-building-in-qemu-using-new-swift-5-6-arm64-image/56090)

<div class="topic-metadata">

**Author:** [@strophy](https://forums.swift.org/u/strophy)\
**Replies:** 9\
**Last updated:** [October 4, 2023, 12:13pm UTC](https://forums.swift.org/t/build-crash-when-building-in-qemu-using-new-swift-5-6-arm64-image/56090 "2023-10-04T12:13:38Z")

</div>

Hello! I'm trying to update the rvolosatovs/protoc Docker image to add arm64 support. This image contains Google protobuf support for a number of languages, including Swift. To build a multiarch image, I depend on the ne…

---

## [Cross-platform build fails with "qemu: uncaught target signal 4" (and "invalid manifest")](https://forums.swift.org/t/cross-platform-build-fails-with-qemu-uncaught-target-signal-4-and-invalid-manifest/64777)

<div class="topic-metadata">

**Author:** [@JetForMe](https://forums.swift.org/u/JetForMe)\
**Replies:** 5\
**Last updated:** [August 10, 2023, 3:41pm UTC](https://forums.swift.org/t/cross-platform-build-fails-with-qemu-uncaught-target-signal-4-and-invalid-manifest/64777 "2023-08-10T15:41:25Z")

</div>

I've been working on a Vapor app, and now I want to deploy it to linux/amd64. I've got it containerized and working on my M1 Mac, but when I try to build the linux/amd64 version of the Docker image, it fails with #0 311…

---

## [Swift 5.7.3 docker image missing libpython3.10 for ubuntu 22.04](https://forums.swift.org/t/swift-5-7-3-docker-image-missing-libpython3-10-for-ubuntu-22-04/63266)

<div class="topic-metadata">

**Author:** [@bmontegani](https://forums.swift.org/u/bmontegani)\
**Replies:** 5\
**Last updated:** [February 24, 2023, 4:36pm UTC](https://forums.swift.org/t/swift-5-7-3-docker-image-missing-libpython3-10-for-ubuntu-22-04/63266 "2023-02-24T16:36:52Z")

</div>

The 5.7.3 docker image is missing library "libpython3.10" for ubuntu 22.04. Without it the swift repl will not run. As a workaround I have had to add it manually.

---

## [Bug in docker image: swift:5.7-slim swift: command not found](https://forums.swift.org/t/bug-in-docker-image-swift-5-7-slim-swift-command-not-found/60609)

<div class="topic-metadata">

**Author:** [@niklas-heer](https://forums.swift.org/u/niklas-heer)\
**Replies:** 1\
**Last updated:** [October 3, 2022, 7:15am UTC](https://forums.swift.org/t/bug-in-docker-image-swift-5-7-slim-swift-command-not-found/60609 "2022-10-03T07:15:25Z")

</div>

Hi everyone :wave: I was trying out swift:5.7-slim (which seems to be swift:5.7-jammy-slim) and the swift command couldn't be found. The library files seem to be present, but the swift command in /usr/bin/swift is missi…

---

## [Vapor build crash swift:5.6.2-centos7](https://forums.swift.org/t/vapor-build-crash-swift-5-6-2-centos7/58302)

<div class="topic-metadata">

**Author:** [@vine](https://forums.swift.org/u/vine)\
**Replies:** 20\
**Last updated:** [September 8, 2022, 8:49am UTC](https://forums.swift.org/t/vapor-build-crash-swift-5-6-2-centos7/58302 "2022-09-08T08:49:43Z")

</div>

I use docker build In file included from /build/.build/checkouts/swift-nio/Sources/CNIOLinux/shim.c:27: /usr/include/unistd.h:1147:35: error: \_\_block attribute not allowed, only allowed on local variables extern void en…

---

## [Minimum requirements for installing a swift toolchain?](https://forums.swift.org/t/minimum-requirements-for-installing-a-swift-toolchain/59442)

<div class="topic-metadata">

**Author:** [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Replies:** 2\
**Last updated:** [August 3, 2022, 11:08pm UTC](https://forums.swift.org/t/minimum-requirements-for-installing-a-swift-toolchain/59442 "2022-08-03T23:08:34Z")

</div>

i’ve been cargo-culting this dependency stack in my dockerfiles for a while now: FROM amazonlinux:latest WORKDIR /home/ec2-user/ RUN yum -y update RUN yum -y install lsb-release curl git cmake ninja-build clang python…

---

## [Nightly-centos7's git is broken?](https://forums.swift.org/t/nightly-centos7s-git-is-broken/57992)

<div class="topic-metadata">

**Author:** [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Replies:** 1\
**Last updated:** [July 28, 2022, 4:48pm UTC](https://forums.swift.org/t/nightly-centos7s-git-is-broken/57992 "2022-07-28T16:48:37Z")

</div>

I've been adding more Linux builders for Alamofire and found that, while the 5.6.1-centos7 image works, the nightly-centos7 fails to clone the repo due to a git error (log here): /opt/rh/rh-git227/root/usr/libexec/git-c…

---

## [Building SwiftPM package in docker](https://forums.swift.org/t/building-swiftpm-package-in-docker/58797)

<div class="topic-metadata">

**Author:** [@ramonschriks](https://forums.swift.org/u/ramonschriks)\
**Replies:** 5\
**Last updated:** [July 11, 2022, 7:18am UTC](https://forums.swift.org/t/building-swiftpm-package-in-docker/58797 "2022-07-11T07:18:04Z")

</div>

Hello everyone! I added a library to my test target dependency, which builds and runs perfectly fine on a MacOS host machine. The library itself is Mockingbird, which only my application tests rely on. However, i'm als…

---

## [Error building libmongoc on swift:5.5.3-bionic](https://forums.swift.org/t/error-building-libmongoc-on-swift-5-5-3-bionic/58435)

<div class="topic-metadata">

**Author:** [@MikeP](https://forums.swift.org/u/MikeP)\
**Replies:** 2\
**Last updated:** [June 29, 2022, 5:34pm UTC](https://forums.swift.org/t/error-building-libmongoc-on-swift-5-5-3-bionic/58435 "2022-06-29T17:34:36Z")

</div>

Hi, I've been using swift + mongo on unbuntu with the official swift docker images for a while now successfully. Trying to upgrade to 5.5 I'm getting an error compiling libmongoc. This is the Dockerfile with the libmo…

---

## [Swift Vapor reducing Docker image size](https://forums.swift.org/t/swift-vapor-reducing-docker-image-size/57116)

<div class="topic-metadata">

**Author:** [@RichardPaulFM](https://forums.swift.org/u/RichardPaulFM)\
**Replies:** 13\
**Last updated:** [May 14, 2022, 6:36pm UTC](https://forums.swift.org/t/swift-vapor-reducing-docker-image-size/57116 "2022-05-14T18:36:13Z")

</div>

Good Day everyone, Im currently working on a server side project developed using "Vapor". Currently we are able to reduce the image size to 183 mb(which is think is pretty darn good) using swift:5.5-focal and running in…

---

## [How can I reach servers on the network from my swift docker (5.6.1) container?](https://forums.swift.org/t/how-can-i-reach-servers-on-the-network-from-my-swift-docker-5-6-1-container/57105)

<div class="topic-metadata">

**Author:** [@tychop](https://forums.swift.org/u/tychop)\
**Replies:** 6\
**Last updated:** [May 3, 2022, 12:40pm UTC](https://forums.swift.org/t/how-can-i-reach-servers-on-the-network-from-my-swift-docker-5-6-1-container/57105 "2022-05-03T12:40:53Z")

</div>

Hi, I'm trying to retrieve some json from a server in our network. The problem I'm having is that I get an error: 'Could not resolve host: server.company.com' I'm using the 'swift:5.6.1-slim' image as the source for m…

---

## [Arm64 Swift Docker Images?](https://forums.swift.org/t/arm64-swift-docker-images/43864)

<div class="topic-metadata">

**Author:** [@finestructure](https://forums.swift.org/u/finestructure)\
**Replies:** 43\
**Last updated:** [March 17, 2022, 11:02am UTC](https://forums.swift.org/t/arm64-swift-docker-images/43864 "2022-03-17T11:02:24Z")

</div>

With the Docker Tech Preview available (and working quite well as far as I can tell), I was wondering if there are any plans to publish arm64 swift docker images. I.e. I'd love to get this to work on an M1 Mac: ❯ docke…

[Next page](https://forums.swift.org/c/server/docker/40.md?page=1)
