Comments (3)
Hi there!
I am using this repo. for my local dev setup. Somehow I run into this issue where wp-cli shows (grey icon showing the container is not running. It says EXITED (0).)
If I remove the wp-cli container everything else works fine.
When I click the wp-cli container to see the logs show this
I appreciate it if you could help.
In addition to that I tried to run this command I found on the official page wp-cli.org "PHP wp-cli.phar --info"
I then tried to run "docker-compose wp --rm wp user list"
It shows results. Am kinda confused.
from docker-compose-wordpress.
This isn't my repo, but I think the behavior you described initially is what is expected. It's what I see on my end and I would say it's working correctly.
The Docker dashboard shows the grayed out CLI container on purpose. There is no reason to have it active all the time using resources. When you run the command...
docker-compose run --rm wp user list
It runs the container with the --rm
flag which will shut it back down after successfully executing the command. The next time you need to execute something from the wp-cli, you just run the docker-compose run --rm wp COMMANDSHERE
and it will reactivate the container, execute your function, and then exit again.
from docker-compose-wordpress.
This isn't my repo, but I think the behavior you described initially is what is expected. It's what I see on my end and I would say it's working correctly.
The Docker dashboard shows the grayed out CLI container on purpose. There is no reason to have it active all the time using resources. When you run the command...
docker-compose run --rm wp user list
It runs the container with the
--rm
flag which will shut it back down after successfully executing the command. The next time you need to execute something from the wp-cli, you just run thedocker-compose run --rm wp COMMANDSHERE
and it will reactivate the container, execute your function, and then exit again.
Thanks John ✌️
from docker-compose-wordpress.
Related Issues (11)
- Nginx php config errors HOT 4
- ERROR: Service 'php' failed to build HOT 2
- Nginx: Permission denied HOT 2
- Unable install plugins or themes when using Admin Panel HOT 3
- You're making a very good yt tutorial about this topic!
- Enable Imagick HOT 2
- nginx is not starting HOT 2
- Nginx SSL error
- localhost is accessible instead of wordpress-docker.test HOT 1
- Remote SQL connection times out
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-compose-wordpress.