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

Compose ps not showing all running services #4186

Closed
dimsav opened this issue Nov 25, 2016 · 3 comments
Closed

Compose ps not showing all running services #4186

dimsav opened this issue Nov 25, 2016 · 3 comments

Comments

@dimsav
Copy link

dimsav commented Nov 25, 2016

Hello, and thank you for this amazing software.

There seems to be an issue with recognizing what services are running when we a custom docker file.

docker-compose -f docker-compose.custom.yml up

Now if we run docker-compose ps on the same directory, even though the services in that file will be running, ps won't show them in the list.

I don't know if this is the same issue or not, but additionally running docker-compose run {service} {command} won't work if the command is in this docker-compose.custom.yml file.

Version: docker-compose version 1.8.1, build 878cff1

Thank you for your time.

@shin-
Copy link

shin- commented Nov 29, 2016

Hi @dimsav,

You need to provide -f for those subsequent commands as well, i.e.

docker-compose -f docker-compose.custom.yml ps
docker-compose -f docker-compose.custom.yml run {service} {command}

HTH!

@dimsav
Copy link
Author

dimsav commented Nov 29, 2016

Sending you lots of good karma, thank you so much @shin-.

@dimsav dimsav closed this as completed Nov 29, 2016
@bennadel
Copy link

bennadel commented Mar 6, 2018

Thank you! This appears to also apply to the -p PROJECT_NAME argument as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants