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

feat(core) : isRunning function needs to be added #19

Open
sevilayerkan opened this issue Jun 27, 2023 · 2 comments
Open

feat(core) : isRunning function needs to be added #19

sevilayerkan opened this issue Jun 27, 2023 · 2 comments
Assignees
Labels

Comments

@sevilayerkan
Copy link
Owner

Is your feature request related to a problem? Please describe.
isRunning function needs to be added for checking docker daemon is running or not.

Describe the solution you'd like
for resolve this issue we can add a function like this:

def isRunning():
   if docker is running:
       return 1
  else:
      return 0

Additional context
This function will be used in show() and in the beginning of the program.

@sevilayerkan
Copy link
Owner Author

sevilayerkan commented Jun 27, 2023

If we want to solve this while supporting cross-platform usage, we can approach to this issue in 3 ways:

1- By checking docker ps response
2- Ping docker vm ip and check its response time (this might be spesific to certain os')
3- Using commands within docker cli
4- Or using docker lib in python

Right now as solve this issue quickly we are solving with using docker ps and std.process. If not I'll try 4th approach.

https://stackoverflow.com/questions/57108228/how-to-check-if-docker-is-running-on-windows about possible solutions.

@sevilayerkan
Copy link
Owner Author

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

No branches or pull requests

1 participant