mirror of
https://github.com/budtmo/docker-android.git
synced 2026-04-25 12:15:52 +03:00
[GH-ISSUE #68] Unhealthy Container on Swarm #57
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docker-android#57
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rlupo09 on GitHub (Feb 15, 2018).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/68
Note: Swarm nodes each have 19GB of memory
Summary: When running on a Docker Swarm the container cannot get healthy. The container starts it becomes unhealthy, gets killed then a new one starts and becomes unhealthy. It continues to loop like this
Steps to reproduce:
Terminal command:
docker stack deploy -c docker-compose.yml mobilev2Hubdocker-compose.yml:
Observed result: When the container starts it becomes unhealthy, gets killed then a new one starts and becomes unhealthy. It continues to loop like this
docker ps

docker service ps

Container Details
@budtmo commented on GitHub (Feb 23, 2018):
Hi @rlupo09 ,
Thank you for opening the issue. does it happen only on swarm?
@rlupo09 commented on GitHub (Feb 23, 2018):
Hi @butomo1989,
Yes, it seems to only happen on the swarm.
@pawelus commented on GitHub (Oct 10, 2018):
@butomo1989 I'm facing the same problem.
I debugged it a bit more and this is what I see when executing
docker exec -it <container_id> tail -f /var/log/supervisor/docker-android.stdout.logThe cause of this is that
--privilegedis not allowed in swarm mode so there's no access to/dev/kvmfrom inside of the container running in swarm mode.Adding
/dev/kvm:/dev/kvmvolume doesn't help as there still won't be enough privileges set.Any suggestions on how to work around this?
@budtmo commented on GitHub (Oct 10, 2018):
Hi @pawelus ,
Based on this article, it seems that docker will not add priviledge mode for docker swarm, but it shows how you can fork and modify it by yourself. Of course you need to pull new changes everyday if there is any from the original repo which isn't good.