Executing sync in a container sometimes takes a very long time