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

Linux: After updating "The docker version currently installed does not seem to meet ddev's requirements: 19.3.12 is less than 20.10.0-alpha1" #4755

Closed
1 task done
elrokket opened this issue Mar 15, 2023 · 10 comments

Comments

@elrokket
Copy link

elrokket commented Mar 15, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Run a Diagnostic and Paste Link Here

Hello, i updated ddev to last version but now i cant start projects, when i execute ddev start fire this message:

The docker version currently installed does not seem to meet ddev's requirements: 19.3.12 is less than 20.10.0-alpha1
failed to RunSimpleContainer to inspect database version/type: failed to create/start docker container ({GetExistingDBType-myproject-lRzWqX 0xc00025a1e0 0xc0000d8000 <nil> <nil>}):API error (400): invalid IP address in add-host: "host-gateway", output=

Expected Behavior

Start de project.

Actual Behavior

start the project

Steps To Reproduce

Update ddev to 1.2.6 with apt-get (ubuntu)
go to any project and execute ddev start

Fire this error

failed to RunSimpleContainer to inspect database version/type: failed to create/start docker container ({GetExistingDBType-myproject-lRzWqX 0xc00025a1e0 0xc0000d8000 }):API error (400): invalid IP address in add-host: "host-gateway", output=

Anything else?

No response

@rfay
Copy link
Member

rfay commented Mar 15, 2023

Hi @elrokket - Could you please edit to include the output of ddev debug test as was requested?

It looks like this is probably a Docker problem rather than ddev, so please make sure you've restarted docker itself and even rebooted your computer.

Following the troubleshooting docs may help you as well. Things like this are often firewall, vpn, etc.

@elrokket
Copy link
Author

elrokket commented Mar 15, 2023

Hello, before update all is running, after update ddev return this error.

If i execute this command ddev debug dockercheck return

docker platform: jose-portatil 
Using docker context: default (unix:///var/run/docker.sock) 
docker-compose: v2.15.1 
Using DOCKER_HOST=unix:///var/run/docker.sock 
Docker version: 19.03.12 
The docker version currently installed does not seem to meet ddev's requirements: **19.3.12 is less than 20.10.0-alpha1** 
Unable to run simple container: failed to create/start docker container ({dockercheck-runcontainer--TfrKSe 0xc0002221e0 0xc0002edb00 <nil> <nil>}):API error (400): invalid IP address in add-host: "host-gateway" 
Unable to run use internet inside container, many things will fail: failed to create/start docker container ({dockercheck-curl--HEIZpr 0xc00072a1e0 0xc0001de480 <nil> <nil>}):API error (400): invalid IP address in add-host: "host-gateway" 
Unable to determine docker space usage:  

If i execute the ddev debug test command return:

Running bash [-c /tmp/test_ddev.sh] 
======= Existing project config =========
These config files were loaded for project basketclub: [/home/jose/Proyectos-web/basketclub/.ddev/config.yaml]
name: basketclub
type: drupal9
docroot: web
php_version: 7.4
webserver_type: nginx-fpm
webimage: drud/ddev-webserver:v1.21.5
router_http_port: 80
router_https_port: 443
additional_hostnames: []
additional_fqdns: []
mariadb_version: 10.3
database: {mariadb 10.3}
mailhog_port: 8025
mailhog_https_port: 8026
phpmyadmin_port: 8036
phpmyadmin_https_port: 8037
project_tld: ddev.site
use_dns_when_possible: true
composer_version: 2
nodejs_version: 16
default_container_timeout: 120
======= Creating dummy project named  tryddevproject-25256 in ../tryddevproject-25256 =========
OS Information: Linux jose-portatil 5.4.0-144-generic #161-Ubuntu SMP Fri Feb 3 14:49:04 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
User information: uid=1000(jose) gid=1000(jose) grupos=1000(jose),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare),999(docker)
DDEV version:  ITEM             VALUE                                   
 DDEV version     v1.21.6                                 
 architecture     amd64                                   
 db               drud/ddev-dbserver-mariadb-10.4:v1.21.5 
 dba              phpmyadmin:5                            
 ddev-ssh-agent   drud/ddev-ssh-agent:v1.21.5             
 docker           19.03.12                                
 docker-compose   v2.15.1                                 
 docker-platform  jose-portatil                           
 mutagen          0.16.0                                  
 os               linux                                   
 router           drud/ddev-router:v1.21.5                
 web              drud/ddev-webserver:v1.21.5             
PROXY settings: HTTP_PROXY='' HTTPS_PROXY='' http_proxy='' NO_PROXY=''
======= DDEV global info =========
Global configuration:
instrumentation-opt-in=true
omit-containers=[]
mutagen-enabled=false
nfs-mount-enabled=false
router-bind-all-interfaces=false
internet-detection-timeout-ms=3000
disable-http2=false
use-letsencrypt=false
letsencrypt-email=
table-style=default
simple-formatting=false
auto-restart-containers=false
use-hardened-images=false
fail-on-hook-fail=false
required-docker-compose-version=
use-docker-compose-from-path=false
project-tld=
xdebug-ide-location=
no-bind-mounts=false
use-traefik=false
wsl2-no-windows-hosts-mgt=false

======= DOCKER info =========
docker location: -rwxr-xr-x 1 root root 84953424 jun 22  2020 /usr/bin/docker
docker version: 
Client: Docker Engine - Community
 Version:           19.03.12
 API version:       1.40
 Go version:        go1.13.10
 Git commit:        48a66213fe
 Built:             Mon Jun 22 15:45:36 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.12
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10
  Git commit:       48a66213fe
  Built:            Mon Jun 22 15:44:07 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683
DOCKER_DEFAULT_PLATFORM=notset
======= Mutagen Info =========
======= Docker Info =========
Docker platform: jose-portatil 
Using docker context: default (unix:///var/run/docker.sock) 
docker-compose: v2.15.1 
Using DOCKER_HOST=unix:///var/run/docker.sock 
Docker version: 19.03.12 
Docker disk space:
Filesystem                Size      Used Available Use% Mounted on
overlay                  76.3G     33.2G     39.2G  46% /

Failed removing custom certs/traefik configuration: failed to create/start docker container ({poweroff-tPdpdU 0xc0004281e0 0xc000127680 <nil> <nil>}):API error (400): invalid IP address in add-host: "host-gateway"
The ddev-ssh-agent container has been removed. When you start it again you will have to use 'ddev auth ssh' to provide key authentication again.
Existing docker containers: 
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                   PORTS               NAMES
2bd06c23767b        hello-world         "/hello"            3 years ago         Exited (0) 3 years ago                       crazy_euler
7a4397fa10cd        hello-world         "/hello"            3 years ago         Exited (0) 3 years ago                       boring_rosalind
Creating a new ddev project config in the current directory (/home/jose/Proyectos-web/tryddevproject-25256) 
Once completed, your configuration will be written to /home/jose/Proyectos-web/tryddevproject-25256/.ddev/config.yaml
 
Configuring unrecognized codebase as project type 'php' at /home/jose/Proyectos-web/tryddevproject-25256/web 
failed to RunSimpleContainer to inspect database version/type: failed to create/start docker container ({GetExistingDBType-tryddevproject-25256-UjFKPE 0xc0003ea1e0 0xc0003c3200 <nil> <nil>}):API error (400): invalid IP address in add-host: "host-gateway", output= 
The docker version currently installed does not seem to meet ddev's requirements: 19.3.12 is less than 20.10.0-alpha1
Network ddev_default created
Failed to get project(s): could not find a project in /home/jose/Proyectos-web/tryddevproject-25256. Have you run 'ddev config'? Please specify a project name or change directories: no .ddev/config.yaml file was found in this directory or any parent

And all projects stopped

I dont have vpn, firewall and nothing.

@rfay
Copy link
Member

rfay commented Mar 15, 2023

Please share the .ddev/.ddev-docker-compose-full.yaml in tryddevproject-25256 - it would be a lot better as a gist or other pastebin, or as a textfile please.

@elrokket
Copy link
Author

Not exists

@rfay
Copy link
Member

rfay commented Mar 15, 2023

It's in the .ddev directory of every project. It's created on ddev start. You may not see it because you're on linux and dotfiles are hidden by default. ls -a .ddev/.ddev* will show it to you. Or just get me .ddev/.ddev-docker-compose-base.yaml.

@elrokket
Copy link
Author

elrokket commented Mar 15, 2023

It's in the .ddev directory of every project. It's created on ddev start. You may not see it because you're on linux and dotfiles are hidden by default. ls -a .ddev/.ddev* will show it to you. Or just get me .ddev/.ddev-docker-compose-base.yaml.

i cant start because is the error fired, only create /web folder

image

I view this bug in docker 19 version colud be the problem

docker/cli#2664

@rfay
Copy link
Member

rfay commented Mar 15, 2023

You need to do ls -la in the .ddev directory to see it. Or ls -la .ddev

@rfay
Copy link
Member

rfay commented Mar 16, 2023

Also, I saw that you have an unsupported version of docker. The message in your original message says "The docker version currently installed does not seem to meet ddev's requirements: 19.3.12 is less than 20.10.0-alpha1
". Please upgrade your Docker.

@elrokket
Copy link
Author

Fixed, the problem is with 19 of docker, i updated with this command:

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

and now are working, thanks and sorry for your time.

@rfay
Copy link
Member

rfay commented Mar 16, 2023

Glad it's working for you!

@rfay rfay closed this as completed Mar 16, 2023
@rfay rfay changed the title Erorr ddev start after update 1.2.6 Linux: After updating "The docker version currently installed does not seem to meet ddev's requirements: 19.3.12 is less than 20.10.0-alpha1" Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants