04 - Setup Apple Container DNS Service

Опубликовано: 20 Февраль 2026
на канале: linkarzu
1,067
18

container includes an embedded DNS service that simplifies access to your containerized applications. If you want to configure a local DNS domain named test for this tutorial, run:

sudo container system dns create test
container system dns default set test

Enter your administrator password when prompted. The first command requires administrator privileges to create a file containing the domain configuration under the /etc/resolver directory, and to tell the macOS DNS resolver to reload its configuration files.

The second command makes test the default domain to use when running a container with an unqualified name. For example, if the default domain is test and you use --name my-web-server to start a container, queries to my-web-server.test will respond with that container's IP address.

Apple Containers playlist
   • Apple Containers  

Apple container GitHub Repo
https://github.com/apple/container

----------------------------------------------------------------------------------------------------

YouTube Memberships
   / @linkarzu  

Start your setapp 7 day free trial
https://setapp.sjv.io/QjKK1a

Join me in discord (Linkarzu)
  / discord  

Start your 1password 14 day free trial (my affiliate link)
https://www.dpbolvw.net/click-1013272...

If you find this video helpful and want to support me
https://ko-fi.com/linkarzu

Follow me on twitter
https://x.com/link_arzu

My dotfiles (remember to star them)
https://github.com/linkarzu/dotfiles-...