Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check docker version fail in generate_config.sh #6187

Open
5 tasks done
i-curve opened this issue Nov 27, 2024 · 0 comments · May be fixed by #6188
Open
5 tasks done

check docker version fail in generate_config.sh #6187

i-curve opened this issue Nov 27, 2024 · 0 comments · May be fixed by #6188
Labels

Comments

@i-curve
Copy link

i-curve commented Nov 27, 2024

Contribution guidelines

I've found a bug and checked that ...

  • ... I understand that not following the below instructions will result in immediate closure and/or deletion of my issue.
  • ... I have understood that this bug report is dedicated for bugs, and not for support-related inquiries.
  • ... I have understood that answers are voluntary and community-driven, and not commercial support.
  • ... I have verified that my issue has not been already answered in the past. I also checked previous issues.

Description

The docker version cannot be less than 24 in the generate_config.sh script. An error will occur in the if statement. docker_version is a multi line value.


docker_version=$(docker -v | grep -oP '\d+\.\d+\.\d+' | cut -d '.' -f 1)

if [[ $docker_version -lt 24 ]]; then
  echo -e "\e[31mCannot find Docker with a Version higher or equals 24.0.0\e[0m"
  echo -e "\e[33mmailcow needs a newer Docker version to work properly...\e[0m"
  echo -e "\e[31mPlease update your Docker installation... exiting\e[0m"
  exit 1
fi


### Logs:

```plain text
generate_config.sh: line 31: [[: 26
26
24: syntax error in expression (error token is "26
24")
Found Docker Compose Plugin (native).
Setting the DOCKER_COMPOSE_VERSION Variable to native
Notice: You'll have to update this Compose Version via your Package Manager manually!
Press enter to confirm the detected value '[value]' where applicable or enter a custom value.
Mail server hostname (FQDN) - this is not your mail domain, but your mail servers hostname: ^

Steps to reproduce:

1. run `bash generate_config.sh`

Which branch are you using?

master

Which architecture are you using?

x86

Operating System:

Ubuntu 24.04

Server/VM specifications:

16GB, 16vCPU

Is Apparmor, SELinux or similar active?

no

Virtualization technology:

kvm

Docker version:

26.1.3

docker-compose version or docker compose version:

v2.27.1

mailcow version:

2024-11b

Reverse proxy:

nginx

Logs of git diff:

N/A

Logs of iptables -L -vn:

N/A

Logs of ip6tables -L -vn:

N/A

Logs of iptables -L -vn -t nat:

N/A

Logs of ip6tables -L -vn -t nat:

N/A

DNS check:

N/A
@i-curve i-curve added the bug label Nov 27, 2024
i-curve added a commit to i-curve/mailcow-dockerized that referenced this issue Nov 27, 2024
@i-curve i-curve linked a pull request Nov 27, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant