-
-
Notifications
You must be signed in to change notification settings - Fork 542
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
Recent docker forces usage of new Docker Compose V2 #3075
Comments
I also get this errors without an M1 chip. Perhaps some fresh released containers? |
@pirog told me how to address this: go to Preferences in Docker Desktop, click the "Experimental Features" horizontal tab, uncheck "Use Docker Compose V2", and then click "Apply & Restart". Then, run "lando rebuild -y" or whatever you were planning to run. |
Next version of Lando will force usage of the older docker-compose until we officially support the newer one. This will happen regardless of whether you've checked the box in Docker Desktop or not. |
In the Arch Linux community repository, docker-compose has been officially updated to 2.0.0. |
We will support |
I've browsed the code a little, found out that the only changes actually needed for it to work is to change (based on the docker-compose version detected) how compose commands are built. If the implementation is somewhat clean I'll send this through a PR. |
I don’t think we want to just wholesale force move everything and everyone
over to V2 especially considering it’s highly probable, despite claims that
it is a drop in replacement that “should” just work, that it’s not going to
just work.
We probably want to make this configurable to the user so they can opt in
to using a “beta” of v2 if they want. This way we can determine when we
think it’s ready for wholesale use without compromising the stability for
everyone.
…On Thu, Sep 30, 2021 at 9:09 AM Bailetti Tommaso ***@***.***> wrote:
I've browsed the code a little, found out that the only changes actually
needed for it to work is to change (based on the docker-compose version
detected) how compose commands are built. If the implementation is somewhat
clean I'll send this through a PR.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#3075 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFOFUDTZTCHM5VMCPSJWUDUEROPLANCNFSM5AC2TFEA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Absolutely, the V2 is currently a release candidate and not ready for production as documentation states, I've tried with a bunch of projects locally and everything works, I've surely not tested every use of application of this new version. |
Quick update on this. |
@Tbaile does that mean that most users could be running Docker Compose V2 and won't experience any issues without any changes to Lando? Hoping we can close this out... :) |
Yes, the issue can be closed. TLDR: |
Awesome, thanks @Tbaile, closing this out. |
Recently got a new work computer and found out it had an M1 chip. I can't get Lando working and get errors related to "services":
"lando rebuild -y" (or destroy) gives me:
services.appserver_nginx.env_file must be a string
"lando start" gives me:
services.ca.ports must be a list
"lando info" gives me:
[ { service: 'appserver_nginx',
urls: [],
type: 'nginx',
healthy: true,
managed: true,
webroot: 'web',
config:
{ vhosts: '/Users/me/.lando/config/pantheon/drupal8.conf.tpl',
php: '/Users/me/.lando/config/pantheon/php.ini',
server: '/Users/me/.lando/config/pantheon/nginx.conf.tpl' },
version: '1.16',
meUser: 'www-data',
hasCerts: true,
hostnames: [ 'appserver_nginx.mysite.internal' ] },
{ service: 'appserver',
urls: [],
type: 'php',
healthy: true,
via: 'nginx:1.16',
served_by: 'appserver_nginx',
webroot: 'web',
config:
{ php: '/Users/me/.lando/config/pantheon/php.ini',
server: '/Users/me/.lando/config/pantheon/nginx.conf.tpl',
vhosts: '/Users/me/.lando/config/pantheon/drupal8.conf.tpl' },
version: '7.4',
meUser: 'www-data',
hasCerts: false,
hostnames: [ 'appserver.mysite.internal' ] },
{ service: 'database',
urls: [],
type: 'mysql',
healthy: true,
internal_connection: { host: 'database', port: '3306' },
external_connection: { host: '127.0.0.1', port: true },
healthcheck: 'bash -c "[ -f /bitnami/mysql/.mysql_initialized ]"',
creds: { database: 'pantheon', password: 'pantheon', user: 'pantheon' },
config: { database: '/Users/me/.lando/config/pantheon/mysql.cnf' },
version: '5.7',
meUser: 'www-data',
hasCerts: false,
hostnames: [ 'database.mysite.internal' ] } ]
.lando.yml file:
name: my-site
recipe: pantheon
config:
framework: drupal8
site: my-site
id: [redacted]
'#' Disable the SOLR index
index: false
'#' Disable the VARNISH edge
edge: false
'#' Disable the REDIS cache
cache: false
services:
appserver:
scanner: false
database:
type: mysql
portforward: true
creds:
user: pantheon
password: pantheon
database: pantheon
healthcheck: null
The text was updated successfully, but these errors were encountered: