CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

[Bug]

Open frumbert opened this issue 1 month ago • 12 comments

Describe the bug

Unable to reinstall.

To Reproduce

  1. sudo apt update && sudo apt upgrade -y
  2. sudo apt remove -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
  3. sudo apt autoremove
  4. sudo casaos-uninstall
  5. curl -fsSL https://get.casaos.io | sudo bash
   _____                 ____   _____ 
  / ____|               / __ \ / ____|
 | |     __ _ ___  __ _| |  | | (___  
 | |    / _` / __|/ _` | |  | |\___ \ 
 | |___| (_| \__ \ (_| | |__| |____) |
  \_____\__,_|___/\__,_|\____/|_____/ 
                                      
   --- Made by IceWhale with YOU ---

[  OK  ] Your hardware architecture is : x86_64
[  OK  ] Your System is : Linux
[  OK  ] Your Linux Distribution is : ubuntu 
[  OK  ] Memory capacity check passed.
[  OK  ] Disk capacity check passed.
[ INFO ] Updating package manager...
[  OK  ] Update package manager complete.
[ INFO ] Install the necessary dependencies: Docker 
# Executing docker install script, commit: 7d96bd3c5235ab2121bcb855dd7b3f3f37128ed4
+ sh -c 'apt-get -qq update >/dev/null'
+ sh -c 'DEBIAN_FRONTEND=noninteractive apt-get -y -qq install ca-certificates curl >/dev/null'
+ sh -c 'install -m 0755 -d /etc/apt/keyrings'
+ sh -c 'curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" -o /etc/apt/keyrings/docker.asc'
+ sh -c 'chmod a+r /etc/apt/keyrings/docker.asc'
+ sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu noble stable" > /etc/apt/sources.list.d/docker.list'
+ sh -c 'apt-get -qq update >/dev/null'
INFO: Searching repository for VERSION '24.0.7'
INFO: apt-cache madison docker-ce | grep '24.0.7' | head -1 | awk '{$1=$1};1' | cut -d' ' -f 3

ERROR: '24.0.7' not found amongst apt-cache madison results

Expected behavior

CasaOS installed as new, installs docker and other components.

Desktop (please complete the following information):

Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.3 LTS
Release:	24.04
Codename:	noble

frumbert avatar Nov 18 '25 03:11 frumbert

I am also facing the same issue with the exact same Distro & command. is there currently any alternatives to install CasaOS at the moment until this is resolved?

Mitwall6456320 avatar Nov 18 '25 09:11 Mitwall6456320

same issue here

SapiZonk avatar Nov 18 '25 10:11 SapiZonk

It seams that CasaOS can't figure newer version of docker, for workaround I used that commands $ curl -sSL https://get.docker.com | sh

$ systemctl edit docker.service

Add this part above the line ### Lines below this comment will be discarded:

[Service] Environment=DOCKER_MIN_API_VERSION=1.24

Save and exit $ systemctl restart docker

reference: https://github.com/IceWhaleTech/CasaOS/issues/2404#issuecomment-3528330714

konraduciechowski avatar Nov 18 '25 10:11 konraduciechowski

It seams that CasaOS can't figure newer version of docker, for workaround I used that commands $ curl -sSL https://get.docker.com | sh

$ systemctl edit docker.service

Add this part above the line ### Lines below this comment will be discarded:

[Service] Environment=DOCKER_MIN_API_VERSION=1.24

Save and exit $ systemctl restart docker

reference: #2404 (comment)

worked for me thanks

RybaStefek avatar Nov 18 '25 16:11 RybaStefek

Can confirm also worked for me, Appreciate your assistance!

Mitwall6456320 avatar Nov 19 '25 07:11 Mitwall6456320

I have managed to solve this problem by doing the following: Create a systemd override for Docker

This tells CasaOS to accept the newer Docker API:

sudo systemctl edit docker.service

A text editor will open. Add these lines at the top (before the ### Lines below this comment if it exists):

[Service] Environment=DOCKER_MIN_API_VERSION=1.24

Save and exit (Ctrl+O, Enter, Ctrl+X if using nano).

  1. Reload and restart Docker sudo systemctl daemon-reexec sudo systemctl restart docker

This applies the environment variable.

  1. Verify Docker is working docker version

You should see Docker running, with both Client and Server info.

  1. Install CasaOS

Now you can safely run the CasaOS one-liner:

curl -fsSL https://get.casaos.io | sudo bash

It should detect Docker properly and install everything without hitting the “Docker version/API mismatch” problem.

Chakibdev avatar Nov 19 '25 19:11 Chakibdev

I have managed to solve this problem by doing the following: Create a systemd override for Docker

This tells CasaOS to accept the newer Docker API:

sudo systemctl edit docker.service

A text editor will open. Add these lines at the top (before the ### Lines below this comment if it exists):

[Service] Environment=DOCKER_MIN_API_VERSION=1.24

Save and exit (Ctrl+O, Enter, Ctrl+X if using nano).

  1. Reload and restart Docker sudo systemctl daemon-reexec sudo systemctl restart docker

This applies the environment variable.

  1. Verify Docker is working docker version

You should see Docker running, with both Client and Server info.

  1. Install CasaOS

Now you can safely run the CasaOS one-liner:

curl -fsSL https://get.casaos.io | sudo bash

It should detect Docker properly and install everything without hitting the “Docker version/API mismatch” problem.

Tried this and got an error message saying access denied when I ran sudo systemctl edit docker.service :( I'm brand new to all of this and have no idea what that means. Any help? edit: nevermind, I didn't need to edit docker. running the casaos command after docker installed worked and casaos installed, no need for the override?

QuaesarInDaSky avatar Nov 21 '25 02:11 QuaesarInDaSky

I just stumble upon a comment in a forum from 8 years ago and solved my problem.

Run this before the command to install CasaOs

curl -fsSL get.docker.com -o get-docker.sh sh get-docker.sh

aluizioh2o avatar Nov 21 '25 17:11 aluizioh2o

I just stumble upon a comment in a forum from 8 years ago and solved my problem.

Run this before the command to install CasaOs

curl -fsSL get.docker.com -o get-docker.sh sh get-docker.sh

this one worked really really well. easy peasy. thanks!

opedromandrade avatar Nov 25 '25 17:11 opedromandrade

Maybe you'll get a second error after installing casaOS related to docker too, read this post from the community to solve it. https://community.bigbeartechworld.com/t/fix-docker-api-version-error-for-casaos-app-not-loading/5104

aluizioh2o avatar Nov 25 '25 17:11 aluizioh2o

I just stumble upon a comment in a forum from 8 years ago and solved my problem.

Run this before the command to install CasaOs

curl -fsSL get.docker.com -o get-docker.sh sh get-docker.sh

Thank you!

mr-devboy avatar Nov 27 '25 19:11 mr-devboy

Hi all! Sorry for the long wait, with the help of Sabitech, the installation script has been fixed 🙂 , now you can just do a clean install or use the current installation script to fix the previous docker app not loading. The new script has the following features:

Install the latest available Docker engine instead of Docker 24.0.7
Apply a Docker API compatibility override for newer Docker versions
Allow CasaOS services and baked-in apps to work with modern Docker

Please rest assured that we will continue to improve user experience and working hard to ensure compatibility across multiple platforms.

Dev01-D avatar Dec 10 '25 20:12 Dev01-D