Skip to content

docker-compose vs docker compose #184

@AlecRust

Description

@AlecRust

The wordpress-starter documentation states to use docker-compose command to start i.e.

docker-compose up -d && docker-compose logs -f wordpress

When this command is run though Docker gives this notice:

Docker Compose is now in the Docker CLI, try `docker compose up`

If I switch to using docker compose based on this i.e.

docker compose up -d && docker compose logs -f wordpress

Then I get a different style of output when it's running, and wordpress-starter throws an error and exits:

[+] Running 5/5
 ⠿ Network mysite_default         Created                                                                 3.5s
 ⠿ Volume "mysite_data"           Created                                                                 0.0s
 ⠿ Container mysite_phpmyadmin_1  Started                                                                 5.8s
 ⠿ Container mysite_wordpress_1   Started                                                                10.3s
 ⠿ Container mysite_db_1          Started                                                                 4.8s
wordpress_1  | ERROR: Container running with improper privileges.
wordpress_1  |
wordpress_1  | Be sure your service is configured with the following options:
wordpress_1  | ___
wordpress_1  | services:
wordpress_1  |   wordpress:
wordpress_1  |     cap_add:
wordpress_1  |       - SYS_ADMIN
wordpress_1  |     devices:
wordpress_1  |       - /dev/fuse
wordpress_1  |     # needed on certain cloud hosts
wordpress_1  |     security_opt:
wordpress_1  |       - apparmor:unconfined
wordpress_1  | ___
wordpress_1  |
wordpress_1  | OR (use first option if possible)
wordpress_1  | ___
wordpress_1  | services:
wordpress_1  | wordpress:
wordpress_1  |     privileged: true
wordpress_1  | ___
wordpress_1  |
✨  Done in 121.69s.

In my docker-compose.yml my wordpress service is already configured as-per the first example (with SYS_ADMIN etc.).

Does wordpress-starter not support the new docker compose over docker-compose?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions