VOOZH about

URL: https://thenewstack.io/deploy-the-latest-version-of-the-nextcloud-with-just-two-commands/

⇱ Deploy the Latest Version of the Nextcloud with Just Two Commands - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2023-09-30 06:00:18
Deploy the Latest Version of the Nextcloud with Just Two Commands
tutorial,
Operations

Deploy the Latest Version of the Nextcloud with Just Two Commands

For those who found Nextcloud is too challenging to install, the project developers have created an All-In-One solution that makes deploying Nextcloud incredibly simple.
Sep 30th, 2023 6:00am by Jack Wallen
👁 Featued image for: Deploy the Latest Version of the Nextcloud with Just Two Commands
Feature image via Nextcloud.

Nextcloud is one of the most popular on-prem cloud platforms on the market. Recently, the project team released Nextcloud Hub 6, which includes a built-in artificial intelligence solution, which (according to the developers) is a local-only AI tool.

For those who believe Nextcloud is too challenging (or time-consuming) to install, you’re in luck, as the developers have created an All-In-One solution that makes deploying Nextcloud incredibly simple. With this particular option, you could deploy Nextcloud for every department in your business and not break a sweat.

So, if having the ability to deploy a full-on cloud solution for your home or business in minutes sounds like an appealing option, read on.

For those who still aren’t sold on Nextcloud, consider this. With Nextcloud you can enjoy features (available within your LAN) such as:

  • Storage and real-time collaboration for documents, photos, videos, audio, and more.
  • Local and/or server-side search.
  • Calendars.
  • Audio and video chats.
  • Push notifications.
  • Media streaming.
  • File sharing.
  • File comments.
  • End-to-end encryption.
  • Fingerprint locking.
  • File/folder monitoring.
  • And much more.

You can think of Nextcloud as an on-prem replacement for Google Workspace.

It really is that good.

Even better, the installation of Nextcloud has been made incredibly simple with the All-In-One Docker image.

Let’s see how this is done.

What You’ll Need

I’m going to demonstrate this on Ubuntu Server 22.04 but you can use any Linux distribution that supports Docker. Besides a running instance of Linux, you’ll also need a user with sudo privilege. For AIO to function properly, you’ll also need a valid domain and certificate.

That’s it. Roll up your sleeves and flex your fingers, it’s time to type (or copy/paste).

Install Docker

There’s a very simple way to install Docker. Now, normally, I much prefer going through the manual steps for installing Docker (I’ll outline in a moment). But in the spirit of getting Nextcloud up and running very quickly, let’s run a handy script that will take care of the installation for you.

Log into your Linux server and install Docker with the following command:

curl -fsSL https://get.docker.com | sudo sh

The above command will take a few minutes to complete. When it finishes, it will return your prompt, at which point you’ll want to add your user to the docker group with:

sudo usermod -aG docker $USER

Log out and log back in for the changes to take effect.

If you’re like me, you might want to handle the installation of Docker manually. To do that, issue the following commands:

Log out and log back in so the changes take effect.

Now that Docker is installed, it’s time to deploy the Nextcloud All-In-One solution.

Deploying Nextcloud AIO

Back at your terminal window, you can install the Nextcloud AIO solution with the following command:

docker run -d --init --sig-proxy=false --name nextcloud-aio-mastercontainer --restart always --publish 80:80 --publish 8080:8080 --publish 8443:8443 --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config --volume /var/run/docker.sock:/var/run/docker.sock:ro nextcloud/all-in-one:latest

If you’d rather have the command broken down, line by line (so it’s easier to examine), it would look like this:

docker run -d \
--init \
--sig-proxy=false \
--name nextcloud-aio-mastercontainer \
--restart always \
--publish 80:80 \
--publish 8080:8080 \
--publish 8443:8443 \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
nextcloud/all-in-one:latest

When this command finishes, open a web browser that’s connected to the same network and point it to https://SERVER:8080 (where SERVER is the IP address of the hosting server). You’ll be greeted by the AIO setup wizard (Figure 1), which includes a password that you might want to copy (as you’ll need it).

👁 Image

Figure 1

Click Open Nextcloud AIO login and, when prompted (Figure 2), type the password that was generated for you.

👁 Image

Figure 2: The Nextcloud AIO login.

Once you’ve reached this point, you must type your domain in the New AIO Instance section, and click Submit Domain (Figure 3).

👁 Image

Figure 3: Type your domain and hit Submit Domain to finish up the installation.

You’ll also need to open the following ports in your firewall for Nextcloud AIO to function properly:

  • 80
  • 8080
  • 443
  • 8443
  • 3478 (TCP/UDP)

With all of that taken care of, you should find yourself with a full-blown cloud solution that can help make your organization more productive and collaborative.

TRENDING STORIES
Jack Wallen is what happens when a Gen Xer mind-melds with present-day snark. Jack is a seeker of truth and a writer of words with a quantum mechanical pencil and a disjointed beat of sound and soul. Although he resides...
Read more from Jack Wallen
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Docker.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.