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

docker-compose vs docker compose #184

Open
AlecRust opened this issue May 26, 2021 · 5 comments
Open

docker-compose vs docker compose #184

AlecRust opened this issue May 26, 2021 · 5 comments

Comments

@AlecRust
Copy link
Contributor

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?

@jaschahuisman
Copy link

Hi, I have the same issue here, and in my case there is not even a difference between the usage of docker compose or docker-compose. Did you find any solution to fix this?

@AlecRust
Copy link
Contributor Author

Last time I ran a project using this was a few months ago, and I think I just used docker-compose which worked at the time. Sounds like maybe Docker has changed since then.

@dsifford
Copy link
Collaborator

FYI: I don't have owner privileges to this repo, but this project is going to probably need a new regular maintainer because I don't use wordpress (or this project) in my day to day job anymore.

@karellm
Copy link
Collaborator

karellm commented Sep 30, 2021

I'm open to grant owner privileges to whoever is willing to take over. It might need to move out of the visiblevc organization too though.

@jaschahuisman
Copy link

It still works on my macos machine. Only having this issue on my Windows 10 x64 machine. Is there someone else who can test/recreate this problem on a Windows machine?

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

4 participants