Container made it easy to run Linux on my MacBook – here’s how I set it up


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

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.





Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


When you envision a tropical getaway in the Philippines, Bohol is often associated with the Chocolate Hills and the large, lively beaches of Panglao Island. For most tourists, the adventure begins the moment they step off the Cebu to Bohol ferry, eager to immerse themselves in the island’s legendary beach lifestyle. 

However, there is a secret that only experienced island-hoppers and natives know: the best beach in Bohol is actually not where all the action is.

Have you ever been to Bohol and found yourself dodging selfie sticks or competing for a square inch of sand? Then you know that the magic doesn’t happen where the crowds are, but when you get off the beaten path. But what is it about these less-visited shores that are stealing the hearts of those who know where to look? Let’s find out. 

The Psychology of Paradise: Why Less is Truly More?

There is a particular type of peace that can only be achieved when the loudest sound you can hear is the retreat of the tide over broken coral. In the more popular areas of the island, the beach experience is almost like a show with music from bars, street vendors selling sunglasses, and the ever-present sound of motorized boats. While this is exciting for a night out, it does not have the heart of a real island vacation.

The best beach is more than just the brightness of the sand and the clarity of the water; it is about the sense of being a part of something small and special. 

When you discover a beach that is not on every Top 10 list, you are not just a visitor; you are a guest of the land. You get to witness the local fishermen unloading their morning catch instead of a jet ski line. You get to witness the stars without the neon lights of a bar. 

This is the main reason why travelers are now beginning to seek out something new, something different from the popular Alona Beach.

The Problem with Popularity

Let’s not forget that beaches like Alona are popular for a reason. They are stunning. However, with popularity comes development, and development can lead to the degradation of the very thing that drew visitors in the first place. Overcrowded beaches deal with problems like light pollution (which affects sea turtles), noise that chases away native birds, and the inevitable tourist tax on everything from coconuts to cocktails.

On the other hand, quiet and secluded beaches boast of finer sand and more vibrant reefs because they have not faced the same level of foot traffic and boat anchors. 

So, Where are These Hidden Gems?

If you’re ready to trade the crowds for a bit of solitude, here are the beaches that truly define the beauty of Bohol:

1. Dumaluan Beach

Technically still on Panglao Island but lightyears away from the hustle and bustle of Alona, Dumaluan has a much wider shoreline and shallower waters. It’s a favorite among locals, which makes it have a much more down-to-earth and authentic feel. The resorts are also not as packed, which means you get to breathe.

2. Anda White Beach (Quinale Beach)

Anda is situated on the eastern tip of the island and is also known as the next Boracay, minus the high-rise buildings. The beach is famous for its white and fine sand, which stretches for kilometers. It is also a peaceful haven since it is a few hours away from the nearest port. It is one of those places where you can walk for twenty minutes without seeing anyone.

3. Doljo Beach

Hidden away in the northwest corner of Panglao, Doljo is the best spot to watch the sunset. It is renowned for its untouched coral reefs and historic coconut trees that stretch towards the water. There are hardly any commercial developments in this area, which makes it ideal for a long walk while the sun sets.

4. Pamilacan Island

Although you have to take a short boat ride to get there, the beaches of Pamilacan are famous. This small island used to be a whaling ground but is now a protected marine sanctuary. The water is so clear that it is like glass, and the sand is soft white sand and sun-bleached shells. It is the epitome of an off-the-beaten-path paradise.

5. Momo Beach

If you are looking for a rustic experience, Momo is the place to be. It is a shallow beach that is largely occupied by locals, so it is a peaceful and unpretentious destination that is free from all the usual tourist trappings. It is a good place to sit back and watch the colors of the sky change or to read a book under a palm tree.

How to Get to Your Slice of Quiet?

Does it require more work to reach these destinations? A little bit. But that is the filter that makes these destinations unique. The majority of tourists go with the flow. They alight from the ferry, ride a tricycle to the closest resort, and stay there.

If you want a better experience, you have to plan ahead. Come to Bohol via the Cebu to Bohol ferry, which docks in Tagbilaran City. From there, instead of going with the majority to the southwest, you can rent a scooter or a private car to go east to Anda or north to the less crowded areas of Panglao.

The Verdict: Is it Worth the Journey?

Ask anyone who has ever spent a morning alone on the deserted shores of Anda or a sunset alone at Doljo, and the answer is always a resounding yes.

The best beach in Bohol is not a destination where you go to be noticed. It’s a destination where you go to be forgotten for a little while. It’s all about the indulgence of emptiness, the richness of local culture, and the possibility of reconnecting with nature without the filter. When you move away from the masses, you’re not just viewing a beach; you’re living the essence of the island.

The next time you find yourself planning a trip to the Visayas, remember that the most beautiful sights are sometimes only a few miles beyond where everyone else stops. Are you ready to discover your own hidden shore?

Hi! We are Jenn and Ed Coleman aka Coleman Concierge. In a nutshell, we are a Huntsville-based Gen X couple sharing our stories of amazing adventures through activity-driven transformational and experiential travel.



Source link