[Bug]
Describe the bug
Unable to reinstall.
To Reproduce
- sudo apt update && sudo apt upgrade -y
- sudo apt remove -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
- sudo apt autoremove
- sudo casaos-uninstall
- 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
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?
same issue here
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
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
Can confirm also worked for me, Appreciate your assistance!
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).
- Reload and restart Docker sudo systemctl daemon-reexec sudo systemctl restart docker
This applies the environment variable.
- Verify Docker is working docker version
You should see Docker running, with both Client and Server info.
- 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.
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).
- Reload and restart Docker sudo systemctl daemon-reexec sudo systemctl restart docker
This applies the environment variable.
- Verify Docker is working docker version
You should see Docker running, with both Client and Server info.
- 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?
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
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!
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
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!
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.