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

Error docker rmi #53

Closed
martadinata666 opened this issue Jan 20, 2021 · 1 comment
Closed

Error docker rmi #53

martadinata666 opened this issue Jan 20, 2021 · 1 comment

Comments

@martadinata666
Copy link

martadinata666 commented Jan 20, 2021

Checking my shepherd log and see

shepherd_worker.1.jxikrxr1ap9z@homelab | /usr/local/bin/shepherd: line 68: "5": syntax error: operand expected (error token is ""5"") shepherd_worker.1.jxikrxr1ap9z@homelab | xargs: 'echo' terminated by signal 13 shepherd_worker.1.jxikrxr1ap9z@homelab | "docker rmi" requires at least 1 argument. shepherd_worker.1.jxikrxr1ap9z@homelab | See 'docker rmi --help'. shepherd_worker.1.jxikrxr1ap9z@homelab | shepherd_worker.1.jxikrxr1ap9z@homelab | Usage: docker rmi [OPTIONS] IMAGE [IMAGE...]

is it this because i deploy over compose?
my compose
`

version: "3.5"
services:
worker:
image: mazzolino/shepherd
environment:
- SLEEP_TIME="180m"
- BLACKLIST_SERVICES="shepherd"
- WITH_REGISTRY_AUTH="true"
- WITH_INSECURE_REGISTRY="true"
- WITH_NO_RESOLVE_IMAGE="false"
- IMAGE_AUTOCLEAN_LIMIT="5"
- TZ=Asia/Jakarta
networks:
- shepherd
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
deploy:
placement:
constraints:
- node.role == manager
networks:
shepherd:
driver: overlay
name: shepherd
`

Thanks.

@martadinata666
Copy link
Author

My fault, run via compose seems doesnt parse env correctly. Run via docker service create work.

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

1 participant