https://github.com/ubirak/docker-php
docker client in php to hack missing features of official docker client
https://github.com/ubirak/docker-php
docker-client hack stack swarm
Last synced: about 1 year ago
JSON representation
docker client in php to hack missing features of official docker client
- Host: GitHub
- URL: https://github.com/ubirak/docker-php
- Owner: ubirak
- License: apache-2.0
- Created: 2017-11-21T09:42:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-22T11:46:59.000Z (over 8 years ago)
- Last Synced: 2024-11-12T23:35:56.626Z (over 1 year ago)
- Topics: docker-client, hack, stack, swarm
- Language: PHP
- Size: 2.09 MB
- Stars: 4
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# docker-php
docker-php is a docker client writen in php. You can see it as a hack for some currently missing features in the official docker client.
## Born
The primary need was to find a workaround about docker stack deploy as at the time of the creation of this project it don't support some `--detach=false` option (see [docker/cli#373](https://github.com/docker/cli/issues/373)), so when it come to run end to end (e2e) tests on your `ci` (or your local machine) with some freshly deployed docker stack... you probably then launch your tests on a not ready stack!
## Commands
There's currently only one command:
```shell
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock ubirak/docker-php:latest stack:converge
```

For help and more options:
```shell
docker run --rm -it ubirak/docker-php:latest stack:converge --help
```
**NOTE**: this command is also able to track that short lived services of a deployment should reach successfully their shutdown state. You have to add a `docker-php.service.lifecycle=shortlived` on concerned services.
## Audience
docker-php is intended for people that want to hack around docker client for missing/not merged features.
## Troubleshooting
> Error thrown while running command "stack:converge website_designer". Message: "The command "docker stack ps website_designer --format='{{json .}}'" failed.
The service need access to your docker sock. You can run it as root `-u root` or change the read permission of your `/var/run/docker.sock`
# Licensing
docker-php is licensed under the Apache License, Version 2.0. See [LICENSE](https://github.com/ubirak/docker-php/blob/master/LICENSE) for the full license text.