Skip to content
Snippets Groups Projects
Commit 2882a7ce authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Remove checking disk space and add info about pulling docker container

parent 9a965720
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -114,6 +114,7 @@ func (c *CustomDockerClient) diskSpaceLocally(path string) (uint64, uint64, erro
func (c *CustomDockerClient) diskSpaceRemotely(path string) (uint64, uint64, error) {
_, err := c.InspectImage(diskSpaceImage)
if err != nil {
logrus.Debugln("Pulling", diskSpaceImage, "...")
err := c.PullImage(docker.PullImageOptions{
Repository: diskSpaceImage,
}, docker.AuthConfiguration{})
Loading
Loading
@@ -424,7 +425,6 @@ func doCycle(client DockerClient, lowFreeSpace, freeSpace uint64) error {
return err
}
 
logrus.Infoln("Checking disk space...")
diskSpace, _, err := client.DiskSpace(opts.MonitorPath)
if err != nil {
logrus.Warningln("Failed to verify disk space:", err)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment