Skip to content

Possible issue with latest docker compose 2.24 #654

Closed
@pyr0hu

Description

Sail Version

1.27.0

Laravel Version

10.40.0

PHP Version

8.2

Operating System

Linux

OS Version

Description

Using the latest docker compose plugin v2.24, using a dot in the service name will break the sail up -d command.

Related issue: docker/compose#11336

The output shows when someone tries to sail up -d:

5 error(s) decoding:

* 'services[laravel.test].depends_on' expected a map, got 'slice'
* 'services[laravel.test].networks' expected a map, got 'slice'
* 'services[laravel.test].ports[0]' expected a map, got 'string'
* 'services[laravel.test].ports[1]' expected a map, got 'string'
* 'services[laravel.test].volumes[0]' expected a map, got 'string'

Possible solutions could be using a default app name which does not contain a dot, or wait for a hotfix, but I think the former solution would be better.

Steps To Reproduce

Update to latest docker compose (2.24)

Call curl -s https://laravel.build/example-app | bash to create a new Sail app

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions