docker-archive / for-azure

27 stars 18 forks source link

Docker logs not moving to storage accounts instead kept on Disk. #69

Open shivamgupta211 opened 6 years ago

shivamgupta211 commented 6 years ago

Expected behavior

Docker log files should be moved to the attached storage account

Actual behavior

Docker log files are present on the Disk, not moving to the attached storage account. Due to this docker logs are eating up much disk space.

Information

swarm-manager000000:/$ docker-diagnose curl: (7) Failed to connect to 10.0.0.4 port 44554: Connection refused OK hostname=swarm-worker000000 session=1533969549-DxagcZ10QEbaxhQddRUr6eShWjlkusMr Done requesting diagnostics. Your diagnostics session ID is 1533969549-DxagcZ10QEbaxhQddRUr6eShWjlkusMr Please provide this session ID to the maintainer debugging your issue.

thehappycoder commented 5 years ago

I have the same issue.

The following works:

$ docker exec -it editions_logger bash     
# touch /logmnt/helloWorld

I immediately see the new file in the storage account in Azure, but swarm service logs don't end up there for some reason.

diagnostics session ID is 1546487853-TDUrFsT0HNbvfDesNrLtILMIeAqwI5UZ

Masa331 commented 5 years ago

@shivamgupta211 @thehappycoder Were you somehow able to resolve this issue please? I have the same problem now

thehappycoder commented 5 years ago

@Masa331 I ended up migrating to Kubernetes. Docker for Azure seems very unstable.