惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cybersecurity and Infrastructure Security Agency CISA
PCI Perspectives
PCI Perspectives
S
Schneier on Security
E
Exploit-DB.com RSS Feed
T
Troy Hunt's Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
N
News and Events Feed by Topic
H
Heimdal Security Blog
T
The Exploit Database - CXSecurity.com
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Privacy International News Feed
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Schneier on Security
Schneier on Security
The Last Watchdog
The Last Watchdog
AWS News Blog
AWS News Blog
Engineering at Meta
Engineering at Meta
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Google DeepMind News
Google DeepMind News
The Hacker News
The Hacker News
爱范儿
爱范儿
T
Tor Project blog
Google DeepMind News
Google DeepMind News
TaoSecurity Blog
TaoSecurity Blog
L
LINUX DO - 热门话题
Attack and Defense Labs
Attack and Defense Labs
Latest news
Latest news
Cisco Talos Blog
Cisco Talos Blog
Scott Helme
Scott Helme
Jina AI
Jina AI
Recent Announcements
Recent Announcements
博客园 - Franky
I
Intezer
S
Security Affairs
C
Check Point Blog
D
DataBreaches.Net
D
Docker
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
美团技术团队
小众软件
小众软件
S
Security Archives - TechRepublic
C
Cyber Attacks, Cyber Crime and Cyber Security
Vercel News
Vercel News
Project Zero
Project Zero
博客园 - 三生石上(FineUI控件)
Help Net Security
Help Net Security
AI
AI
博客园 - 【当耐特】
NISL@THU
NISL@THU

Latest news

This curved Samsung monitor is perfect for a WFH setup - and it's on sale 7 ways AI can help with your Linux system management I tested an AirTag alternative that uses LoRa mesh to track location - and it's seriously reliable Android already has these 4 iOS 27 features - but I wish it'd steal these 2 next Windows Subsystem for Linux 3 gives developers a compelling reason to stick with Microsoft - here's why This 15-in-1 docking station did more than add ports - it finally brought order to my desk I installed a $17 solar panel onto my doorbell camera, and it's easily my best smart home investment Why Anthropic suddenly pulled Fable 5 and Mythos 5 for everyone I've reviewed every PDF editor out there - then I had ChatGPT build me a better one How I used Airtable to audit and fix my food habits for $12/month - and it paid off big time I found popular student discounts that can save you up to $25 per month Before you buy a smartwatch or smart ring, consider what you're giving up After a month with a foldable phone, I can't justify buying an 'Ultra' model anymore This is the most unique Bluetooth tracker I've tested by far - and it outlasts the AirTag I read the fine print on at-home DNA and health tests - watch out for these risks The wearable health boom is creating a data overload for doctors - what happens next Our favorite health trackers are disappearing - and that's the point I always keep 3 devices connected to a power station - here's why Visa is handling AI-prompted transactions for OpenAI - but can you trust it? I usually avoid on-ear headphones, but Marshall has me seriously reconsidering Phone battery draining fast? Malware is one of 8 possible factors - how to tell for sure Watching sports at home? I'd change these 4 soundbar settings for the most optimal audio I used HyperDroid to make my Android devices look and feel like Windows 11 - and don't regret it This free Android app turned my phone into a 35-tool measuring tool - and I tested everything Claude Fable 5 secretly throttled AI researchers, and the internet went wild 40% of enterprises will scrap AI agents - 3 ways to ensure yours don't fail Your iPhone is getting enhanced Bluetooth tracking with iOS 27 - but there's a catch How I customized my Android Auto in 7 ways to make it more useful when I'm driving Are Facebook and Instagram down? What to know about the Meta outage I use Blink cameras at home, and this 65% off 5-camera bundle is hard to ignore This single router antenna adjustment improved my internet speed more than I expected Most drivers overlook these 6 Android Auto apps - but off-roaders definitely shouldn't Dell vs. HP: I've tested dozens of laptops from both brands, and here's my buying advice Use Google Messages? I change these 9 settings on every new Android phone - here's why Treat your AI agents like eager but misguided human interns - before you lose control Best Buy has a 98-inch Hisense TV on sale for nearly 60% off right now The cloud vs. clouded leopard: America's data center backlash on display at Nashville Zoo 10 useful smart home gadgets that make life so much easier (and are affordable) 4 Android Auto default settings you should change right away - here's why Euro-Office 1.0 arrives to open-source infighting: 'Compatibility is not sovereignty' Apple WWDC: What tech fans got right (and wrong) about iOS 27, Tim Cook, and more I'd recommend this TCL Mini LED TV that's $1,000 off over premium Samsung and LG models Best Buy has better gaming deals right now than Amazon's early Prime Day sale The best Sam's Club deals to compete with Prime Day (including half off membership) 12 home solar power myths you shouldn't fall for in 2026 Buying a school laptop? 4 things I'd consider first (and my top 10 picks) The best time-tracking software of 2026: Expert tested I switched to Alpine Linux, and it's a crazy-fast distro with only one caveat Everything announced at Apple WWDC 2026 - including Siri, iOS 27 dev beta, and more How to try the new Siri AI - join the waitlist today 3 telltale signs someone is stealing your Wi-Fi - and how to stop them Will your iPhone support Siri AI? The answer is complicated I found the most effortless way to clean your Android phone storage - and it's free to use Amazon just slashed the AirPods Pro 3 price to the lowest we've ever seen Microsoft patches record 198 Windows bugs in June update - and 3 are zero days I tested a $15 smart switch and found a coffee maker wasting $1,500 a year in electricity The best streaming deals for students: Spotify, Hulu, HBO Max, and more The best business budgeting tools of 2026: Expert tested I've watched lithium-ion batteries catch fire on purpose: Here's what to do if it happens to you The biggest announcements at Apple WWDC 2026 - including Siri, iOS 27 dev beta, and more Apple's new Siri AI comes with hidden costs that power users should know of The two biggest iOS 27 features at WWDC for me had nothing to do with Siri AI How to download the iPadOS 27 developer beta right now - and which models support it MacBook Neo vs. Acer Swift Air 14: I've used both budget laptops - this model clearly wins How to download the MacOS 27 developer beta right now - and which models are eligible I've used Linux for 30 years - 4 frustrations remain, including 2 that may push me to MacOS 3 new MacOS 27 features make it worth upgrading right away for me - Siri included As a parent, I'm beyond excited about iOS 27's child safety features - how they're better now The AirPods getting a custom equalizer with iOS 27 is a bigger deal than you think How to download the iOS 27 developer beta right now (and which models support it) I quit Safari for Chrome, but these new MacOS 27 features could pull me back WatchOS 27 has arrived: How to download the developer beta now iOS 27's Shortcuts upgrade makes automations easy to build - and will save me so much time Every iPhone model that supports the iOS 27 update (and which older ones don't) The Apple Watch needs a better Siri more than the iPhone right now Acer Swift Air 14 vs. MacBook Neo: I compared both budget laptops - this model wins The quickest way to find blocked numbers on your iPhone - it's easy 8 of the best Prime Day laptop deals I'd actually buy myself I cracked open a '1,000W' portable charger after it failed me in minutes - the cause was clear (and gooey) I traveled 2,700 miles with Sony, Apple, and Sennheiser headphones - this pair sounded the best 5 ways Android Auto beats your car's own infotainment system - hands down 3 ways a smarter Siri could make me rethink the HomePod over Sonos and Bose I had ChatGPT build me a free PDF editor because I didn't trust it to change my files - it worked! How Google could turn Siri into the AI health coach my Apple Watch needs I trusted Malwarebytes to secure my PC for a month - here's how it performed 6 easy ways I make Zorin OS even faster and more secure I asked published authors about their favorite e-readers - and the Kindle isn't the only pick WWDC returns June 8: What we know and how to watch the Apple event How to clear your Android phone cache - the 30-second routine every user should be doing I tried Google Drive's new AI cleanup tool to fix 14 years of storage clutter - here's the result Best VPNs for YouTube in 2026: Expert tested and reviewed Motorola Razr Fold vs. Razr Ultra: I tested both phones for a month - this one's better Hate the right-click menu in Windows? Microsoft just promised to let you tweak it - soon I flew 2,700 miles with 4 headphones - this pair was the best travel companion This 65-inch Hisense TV is already on sale for Prime Day - and I recommend it I wore the Oura Ring 5 for 24 hours - and it fixes my biggest issue with Ring 4 Is Microsoft 365 Premium worth it? What $20 a month gets you - and how it compares to ChatGPT Plus The 5 coolest gadgets I saw at Computex 2026 (that you can eventually buy) Walmart has even better early Prime Day deals than Amazon - these are our favorites Microsoft continues its big Linux push at Build 2026
Container made it easy to run Linux on my MacBook - here's how I set it up
Jack Wallen · 2026-06-15 · via Latest news
containerhero
Jack Wallen/ZDNET

Follow ZDNET: Add us as a preferred source on Google.


ZDNET's key takeaways

  • Container is a solid tool to develop for Linux on MacOS.
  • It deploys lightweight Linux containers on Apple silicon.
  • Container is a free command-line tool.

I've used all sorts of container tools over the years: Docker, Docker Desktop, Podman, Portainer… the list goes on. Most of my container work has been handled on various Linux machines, but every once in a while, I want to work with my MacBook. Either way, I've found there are always choices.

My first choice (when using my MacBook) is to SSH into a Linux machine and work from the command line. But what happens when I don't have a network available (or I'm away from my home)?

Well, there's a new version of the command-line tool for MacOS, called Container, that is just as good as the tools I've used on Linux. 

Container has been around since 2025 and is a handy piece of software that allows you to create and run Linux containers as lightweight virtual machines on your MacOS Apple silicon-powered machine. The latest release of Container is optimized specifically for Apple Silicon Mac hardware. If you've ever used the Docker command-line tool, you'll feel right at home with Container. 

Also: The best Linux distributions for beginners: Expert tested and reviewed

The difference between Container and Docker is that with Container, each container runs in its own lightweight virtual machine and is launched using a Swift-based init system (vminitd). Container is fast and will be familiar to anyone who has previously worked with tools like Docker or Podman.

I'm going to walk you through the installation and usage of Container on a MacBook, but it can be installed on any desktop or laptop running Apple silicon.

Installing Container

Installing Container is simple.

Once the file has downloaded, double-click it to launch the user-friendly installation Wizard. Walk through the simple steps until the installation is complete.

Show more

Container

Installing Container is much easier than you might think.

Jack Wallen/ZDNET

That's all there is to installing Container.

Using Container

Now we get to the fun part. 

I'm going to demonstrate how to deploy a simple web server that'll serve a Hello page, displaying "Hello, ZDNET!".

1. Start Container

The first thing you must do is start the Container system, which is done with the command:

container system start

You should see no errors in the output. To verify the system has started, run the command to list all running containers (of which there are currently none). That command is:

container list --all

The output of the above command will be:

ID  IMAGE  OS  ARCH  STATE  IP

If you see that, Container is successfully running and ready to go.

2. Build your first image

If you know anything about containers, you understand that everything starts with an image. If you've never used containers, think of an image as a stripped-down operating system that contains only what you need to run a particular container. 

Also: Linux will be unstoppable in 2026 - but one open-source legend may not survive

The first thing you'll want to do is create a directory to house our little project. Do that with the command:

mkdir hello-web

Change into that new directory with the command:

cd hello-web

The next step is to create a Dockerfile that will contain all of the necessary configurations for our Hello web server. Create the file with the command:

nano Dockerfile

In that file, paste the following contents:

FROM docker.io/python:alpine
WORKDIR /content
RUN apk add curl
RUN echo '<!DOCTYPE html><html><head><title>Hello</title></head><body><h1>Hello, ZDNET!</h1></body></html>' > index.html
CMD ["python3", "-m", "http.server", "80", "--bind", "0.0.0.0"]

Save and close the file with the keyboard shortcut Ctrl+X.

Let's break down the above:

  • FROM -- This instructs Container what remote image to pull that will be used as our base.
  • WORKDIR -- This is the directory (that will be created within our hello-web directory) that will house everything.
  • RUN -- This is the first command that will be run within the image and installs the curl app.
  • RUN -- This is the second command that creates the index.html file that includes the Hello, ZNDET! text that will be displayed in the H1 format.
  • CMD -- This command configures the web server to run on port 80 and use the 0.0.0.0 address (so it's accessible to your web browser).

Next, we have to build our new image that will be used to create the web server container. This is done with the command:

container build --tag hello-web --file Dockerfile .

3. Deploy the web server

With the image built, we can now deploy the web server with the command:

container run --name hello-web-server --detach hello-web

The above command deploys a container named hello-web-server in the background (by way of the --detach option) using the hello-web image.

4. Viewing your deployed Hello web page

To view your newly deployed web page, you first need to locate the IP address it is using. To do that, issue the command:

container ls

You should see something like this in the output:

hello-web-server   hello-web:latest linux  arm64  running  192.168.64.3/24  4     1024 MB  2026-06-15T13:23:40Z

The IP address for the above hello-web-server container is 192.168.64.3. If you open your browser and point it to that address, you should see Hello, ZDNET! on the page.

Container

Success!

Jack Wallen/ZDNET

Congratulations, you just deployed your first container using the Apple silicon-optimized container tool.

Also: How to connect to a VirtualBox virtual machine from your LAN

Although this isn't a point-and-click-friendly tool, there are GUIs, such as ContainerKit, that are in heavy development. There are currently no installable releases for ContainerKit, but you can be certain there will be in the near future. As well, there will be other GUI apps that will eventually appear to help make this tool even easier.

Featured