Skip to content

Instantly share code, notes, and snippets.

@KavenTheriault
Created November 14, 2019 16:12
Show Gist options
  • Save KavenTheriault/78a74c32e38584d508406fa5b7974a97 to your computer and use it in GitHub Desktop.
Save KavenTheriault/78a74c32e38584d508406fa5b7974a97 to your computer and use it in GitHub Desktop.
Problem disk usage docker

Before execution

docker system df
TYPE                TOTAL               ACTIVE              SIZE                RECLAIMABLE
Images              8                   4                   6.375GB             5.05GB (79%)
Containers          4                   4                   437.8kB             0B (0%)
Local Volumes       7                   2                   10.12kB             2.58kB (25%)
Build Cache         0                   0                   0B                  0B
df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G     0  3.9G   0% /dev
tmpfs           799M   28M  772M   4% /run
/dev/xvda1       16G  8.8G  6.2G  59% /
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
tmpfs           799M     0  799M   0% /run/user/1000
docker diff 8ea78348ee36
C /home
C /home/django
A /home/django/.cache
A /home/django/.cache/matplotlib
A /home/django/.cache/matplotlib/fontlist-v300.json
A /home/django/.cache/matplotlib/tex.cache
A /home/django/.config
A /home/django/.config/matplotlib
A /home/django/.python_history
A /home/django/.bash_history
C /app
C /app/point_clouds
C /app/point_clouds/tasks_implementations
A /app/point_clouds/tasks_implementations/__pycache__
A /app/point_clouds/tasks_implementations/__pycache__/extract_point_cloud_walls.cpython-37.pyc
A /app/point_clouds/tasks_implementations/__pycache__/import_point_cloud.cpython-37.pyc
A /app/point_clouds/tasks_implementations/__pycache__/import_point_cloud_entwine_format.cpython-37.pyc
A /app/point_clouds/tasks_implementations/__pycache__/mesh_point_cloud.cpython-37.pyc
A /app/point_clouds/tasks_implementations/__pycache__/compute_point_cloud_path.cpython-37.pyc
A /app/point_clouds/tasks_implementations/__pycache__/crop_point_clouds.cpython-37.pyc
A /app/point_clouds/tasks_implementations/__pycache__/delete_point_cloud.cpython-37.pyc
A /app/point_clouds/tasks_implementations/__pycache__/extract_point_cloud_boundaries.cpython-37.pyc
C /app/point_clouds/utils
A /app/point_clouds/utils/__pycache__
A /app/point_clouds/utils/__pycache__/__init__.cpython-37.pyc
A /app/point_clouds/utils/__pycache__/merge_paths.cpython-37.pyc
A /app/point_clouds/__pycache__
A /app/point_clouds/__pycache__/json_models.cpython-37.pyc
A /app/point_clouds/__pycache__/signal_receivers.cpython-37.pyc
A /app/point_clouds/__pycache__/models.cpython-37.pyc
A /app/point_clouds/__pycache__/signals.cpython-37.pyc
A /app/point_clouds/__pycache__/tasks.cpython-37.pyc
A /app/point_clouds/__pycache__/__init__.cpython-37.pyc
A /app/point_clouds/__pycache__/admin.cpython-37.pyc
A /app/point_clouds/__pycache__/apps.cpython-37.pyc
A /app/point_clouds/__pycache__/managers.cpython-37.pyc
C /app/zones
A /app/zones/__pycache__
A /app/zones/__pycache__/admin.cpython-37.pyc
A /app/zones/__pycache__/api_urls.cpython-37.pyc
A /app/zones/__pycache__/forms.cpython-37.pyc
A /app/zones/__pycache__/tasks.cpython-37.pyc
A /app/zones/__pycache__/permissions.cpython-37.pyc
A /app/zones/__pycache__/serializers.cpython-37.pyc
A /app/zones/__pycache__/signal_receivers.cpython-37.pyc
A /app/zones/__pycache__/urls.cpython-37.pyc
A /app/zones/__pycache__/__init__.cpython-37.pyc
A /app/zones/__pycache__/apps.cpython-37.pyc
A /app/zones/__pycache__/filters.cpython-37.pyc
A /app/zones/__pycache__/models.cpython-37.pyc
C /app/zones/views
A /app/zones/views/__pycache__
A /app/zones/views/__pycache__/__init__.cpython-37.pyc
A /app/zones/views/__pycache__/api_views.cpython-37.pyc
A /app/zones/views/__pycache__/views.cpython-37.pyc
C /app/zones/tasks_implementations
A /app/zones/tasks_implementations/__pycache__
A /app/zones/tasks_implementations/__pycache__/__init__.cpython-37.pyc
A /app/zones/tasks_implementations/__pycache__/create_zone_point_cloud.cpython-37.pyc
A /app/zones/tasks_implementations/__pycache__/refresh_zone_paths.cpython-37.pyc
C /app/config
C /app/config/settings
A /app/config/settings/__pycache__
A /app/config/settings/__pycache__/__init__.cpython-37.pyc
A /app/config/settings/__pycache__/base.cpython-37.pyc
A /app/config/settings/__pycache__/development.cpython-37.pyc
A /app/config/__pycache__
A /app/config/__pycache__/__init__.cpython-37.pyc
A /app/config/__pycache__/celery.cpython-37.pyc
A /app/config/__pycache__/urls.cpython-37.pyc
C /app/project_core
A /app/project_core/__pycache__
A /app/project_core/__pycache__/__init__.cpython-37.pyc
A /app/project_core/__pycache__/admin.cpython-37.pyc
A /app/project_core/__pycache__/apps.cpython-37.pyc
A /app/project_core/__pycache__/filters.cpython-37.pyc
A /app/project_core/__pycache__/models.cpython-37.pyc
C /app/project_core/templatetags
A /app/project_core/templatetags/__pycache__
A /app/project_core/templatetags/__pycache__/project_core.cpython-37.pyc
A /app/project_core/templatetags/__pycache__/__init__.cpython-37.pyc
C /app/utils
C /app/utils/versioned_tools
A /app/utils/versioned_tools/__pycache__
A /app/utils/versioned_tools/__pycache__/ply2potree.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/point_cloud_meshing.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/tunnel_boundaries_extractor.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/tunnel_walls_extractor.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/las2potree.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/file2entwine.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/medial_skeleton_computing.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/tunnel_cropper.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/xyz2potree.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/__init__.cpython-37.pyc
C /app/utils/commands
A /app/utils/commands/__pycache__
A /app/utils/commands/__pycache__/pdal_commands.cpython-37.pyc
A /app/utils/commands/__pycache__/poisson_recon_commands.cpython-37.pyc
A /app/utils/commands/__pycache__/__init__.cpython-37.pyc
A /app/utils/commands/__pycache__/cloud_compare_commands.cpython-37.pyc
A /app/utils/commands/__pycache__/entwine_commands.cpython-37.pyc
A /app/utils/commands/__pycache__/medial_skeleton_commands.cpython-37.pyc
A /app/utils/__pycache__
A /app/utils/__pycache__/asc_helper.cpython-37.pyc
A /app/utils/__pycache__/path_zone_assistant.cpython-37.pyc
A /app/utils/__pycache__/pdal_assistant.cpython-37.pyc
A /app/utils/__pycache__/process_runner.cpython-37.pyc
A /app/utils/__pycache__/temp_file_name.cpython-37.pyc
A /app/utils/__pycache__/convert_obj_to_dxf.cpython-37.pyc
A /app/utils/__pycache__/field_file_assistant.cpython-37.pyc
A /app/utils/__pycache__/las_helper.cpython-37.pyc
A /app/utils/__pycache__/path_finding.cpython-37.pyc
A /app/utils/__pycache__/path_zone_validator.cpython-37.pyc
A /app/utils/__pycache__/vector_utils.cpython-37.pyc
A /app/utils/__pycache__/__init__.cpython-37.pyc
A /app/utils/__pycache__/pcl_assistant.cpython-37.pyc
A /app/utils/__pycache__/string_assistant.cpython-37.pyc
A /app/utils/__pycache__/transformation.cpython-37.pyc
A /app/utils/__pycache__/classes.cpython-37.pyc
A /app/utils/__pycache__/path_box_cropping.cpython-37.pyc
A /app/utils/__pycache__/ply_helper.cpython-37.pyc
A /app/utils/__pycache__/skeleton_assistant.cpython-37.pyc
A /app/utils/__pycache__/zone_validator.cpython-37.pyc
C /app/utils/path_improvements
A /app/utils/path_improvements/__pycache__
A /app/utils/path_improvements/__pycache__/path_merger.cpython-37.pyc
A /app/utils/path_improvements/__pycache__/path_useless_node_remover.cpython-37.pyc
A /app/utils/path_improvements/__pycache__/__init__.cpython-37.pyc
A /app/utils/path_improvements/__pycache__/nearest_points_dictionary_builder.cpython-37.pyc
A /app/utils/path_improvements/__pycache__/path_improvement_strategy.cpython-37.pyc
A /app/utils/path_improvements/__pycache__/path_intersection_aligner.cpython-37.pyc
C /app/core
A /app/core/__pycache__
A /app/core/__pycache__/__init__.cpython-37.pyc
A /app/core/__pycache__/apps.cpython-37.pyc
A /app/core/__pycache__/managers.cpython-37.pyc
A /app/core/__pycache__/models.cpython-37.pyc
A /app/core/__pycache__/querysets.cpython-37.pyc
C /app/webapp
C /app/webapp/views
A /app/webapp/views/__pycache__
A /app/webapp/views/__pycache__/viewer_views.cpython-37.pyc
A /app/webapp/views/__pycache__/__init__.cpython-37.pyc
A /app/webapp/views/__pycache__/invitation_views.cpython-37.pyc
A /app/webapp/views/__pycache__/mine_views.cpython-37.pyc
A /app/webapp/views/__pycache__/point_cloud_filter_views.cpython-37.pyc
C /app/webapp/tasks_implementations
A /app/webapp/tasks_implementations/__pycache__
A /app/webapp/tasks_implementations/__pycache__/compute_mine_path.cpython-37.pyc
A /app/webapp/tasks_implementations/__pycache__/compute_mine_point_cloud_boundaries.cpython-37.pyc
A /app/webapp/tasks_implementations/__pycache__/compute_mine_point_cloud_path.cpython-37.pyc
A /app/webapp/tasks_implementations/__pycache__/compute_mine_point_cloud_walls.cpython-37.pyc
A /app/webapp/__pycache__
A /app/webapp/__pycache__/mixins.cpython-37.pyc
A /app/webapp/__pycache__/models.cpython-37.pyc
A /app/webapp/__pycache__/signal_receivers.cpython-37.pyc
A /app/webapp/__pycache__/signals.cpython-37.pyc
A /app/webapp/__pycache__/__init__.cpython-37.pyc
A /app/webapp/__pycache__/admin.cpython-37.pyc
A /app/webapp/__pycache__/filters.cpython-37.pyc
A /app/webapp/__pycache__/managers.cpython-37.pyc
A /app/webapp/__pycache__/tasks.cpython-37.pyc
A /app/webapp/__pycache__/urls.cpython-37.pyc
A /app/webapp/__pycache__/apps.cpython-37.pyc
A /app/webapp/__pycache__/forms.cpython-37.pyc
A /app/webapp/__pycache__/groups.cpython-37.pyc

After execution

docker system df
TYPE                TOTAL               ACTIVE              SIZE                RECLAIMABLE
Images              8                   4                   6.375GB             5.05GB (79%)
Containers          4                   4                   437.8kB             0B (0%)
Local Volumes       7                   2                   10.12kB             2.58kB (25%)
Build Cache         0                   0                   0B                  0B
df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G     0  3.9G   0% /dev
tmpfs           799M   28M  772M   4% /run
/dev/xvda1       16G   10G  5.0G  67% /
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
tmpfs           799M     0  799M   0% /run/user/1000
docker diff 8ea78348ee36
C /app
C /app/point_clouds
C /app/point_clouds/utils
A /app/point_clouds/utils/__pycache__
A /app/point_clouds/utils/__pycache__/__init__.cpython-37.pyc
A /app/point_clouds/utils/__pycache__/merge_paths.cpython-37.pyc
A /app/point_clouds/__pycache__
A /app/point_clouds/__pycache__/signals.cpython-37.pyc
A /app/point_clouds/__pycache__/tasks.cpython-37.pyc
A /app/point_clouds/__pycache__/admin.cpython-37.pyc
A /app/point_clouds/__pycache__/apps.cpython-37.pyc
A /app/point_clouds/__pycache__/managers.cpython-37.pyc
A /app/point_clouds/__pycache__/models.cpython-37.pyc
A /app/point_clouds/__pycache__/__init__.cpython-37.pyc
A /app/point_clouds/__pycache__/json_models.cpython-37.pyc
A /app/point_clouds/__pycache__/signal_receivers.cpython-37.pyc
C /app/point_clouds/tasks_implementations
A /app/point_clouds/tasks_implementations/__pycache__
A /app/point_clouds/tasks_implementations/__pycache__/crop_point_clouds.cpython-37.pyc
A /app/point_clouds/tasks_implementations/__pycache__/delete_point_cloud.cpython-37.pyc
A /app/point_clouds/tasks_implementations/__pycache__/extract_point_cloud_boundaries.cpython-37.pyc
A /app/point_clouds/tasks_implementations/__pycache__/extract_point_cloud_walls.cpython-37.pyc
A /app/point_clouds/tasks_implementations/__pycache__/import_point_cloud.cpython-37.pyc
A /app/point_clouds/tasks_implementations/__pycache__/import_point_cloud_entwine_format.cpython-37.pyc
A /app/point_clouds/tasks_implementations/__pycache__/mesh_point_cloud.cpython-37.pyc
A /app/point_clouds/tasks_implementations/__pycache__/compute_point_cloud_path.cpython-37.pyc
C /app/project_core
A /app/project_core/__pycache__
A /app/project_core/__pycache__/__init__.cpython-37.pyc
A /app/project_core/__pycache__/admin.cpython-37.pyc
A /app/project_core/__pycache__/apps.cpython-37.pyc
A /app/project_core/__pycache__/filters.cpython-37.pyc
A /app/project_core/__pycache__/models.cpython-37.pyc
C /app/project_core/templatetags
A /app/project_core/templatetags/__pycache__
A /app/project_core/templatetags/__pycache__/__init__.cpython-37.pyc
A /app/project_core/templatetags/__pycache__/project_core.cpython-37.pyc
C /app/zones
C /app/zones/tasks_implementations
A /app/zones/tasks_implementations/__pycache__
A /app/zones/tasks_implementations/__pycache__/refresh_zone_paths.cpython-37.pyc
A /app/zones/tasks_implementations/__pycache__/__init__.cpython-37.pyc
A /app/zones/tasks_implementations/__pycache__/create_zone_point_cloud.cpython-37.pyc
A /app/zones/__pycache__
A /app/zones/__pycache__/__init__.cpython-37.pyc
A /app/zones/__pycache__/api_urls.cpython-37.pyc
A /app/zones/__pycache__/filters.cpython-37.pyc
A /app/zones/__pycache__/models.cpython-37.pyc
A /app/zones/__pycache__/signal_receivers.cpython-37.pyc
A /app/zones/__pycache__/urls.cpython-37.pyc
A /app/zones/__pycache__/admin.cpython-37.pyc
A /app/zones/__pycache__/apps.cpython-37.pyc
A /app/zones/__pycache__/forms.cpython-37.pyc
A /app/zones/__pycache__/permissions.cpython-37.pyc
A /app/zones/__pycache__/serializers.cpython-37.pyc
A /app/zones/__pycache__/tasks.cpython-37.pyc
C /app/zones/views
A /app/zones/views/__pycache__
A /app/zones/views/__pycache__/__init__.cpython-37.pyc
A /app/zones/views/__pycache__/api_views.cpython-37.pyc
A /app/zones/views/__pycache__/views.cpython-37.pyc
C /app/core
A /app/core/__pycache__
A /app/core/__pycache__/querysets.cpython-37.pyc
A /app/core/__pycache__/__init__.cpython-37.pyc
A /app/core/__pycache__/apps.cpython-37.pyc
A /app/core/__pycache__/managers.cpython-37.pyc
A /app/core/__pycache__/models.cpython-37.pyc
C /app/utils
C /app/utils/path_improvements
A /app/utils/path_improvements/__pycache__
A /app/utils/path_improvements/__pycache__/path_intersection_aligner.cpython-37.pyc
A /app/utils/path_improvements/__pycache__/path_merger.cpython-37.pyc
A /app/utils/path_improvements/__pycache__/path_useless_node_remover.cpython-37.pyc
A /app/utils/path_improvements/__pycache__/__init__.cpython-37.pyc
A /app/utils/path_improvements/__pycache__/nearest_points_dictionary_builder.cpython-37.pyc
A /app/utils/path_improvements/__pycache__/path_improvement_strategy.cpython-37.pyc
C /app/utils/versioned_tools
A /app/utils/versioned_tools/__pycache__
A /app/utils/versioned_tools/__pycache__/xyz2potree.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/medial_skeleton_computing.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/ply2potree.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/point_cloud_meshing.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/tunnel_boundaries_extractor.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/tunnel_cropper.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/tunnel_walls_extractor.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/__init__.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/file2entwine.cpython-37.pyc
A /app/utils/versioned_tools/__pycache__/las2potree.cpython-37.pyc
A /app/utils/__pycache__
A /app/utils/__pycache__/process_runner.cpython-37.pyc
A /app/utils/__pycache__/string_assistant.cpython-37.pyc
A /app/utils/__pycache__/transformation.cpython-37.pyc
A /app/utils/__pycache__/zone_validator.cpython-37.pyc
A /app/utils/__pycache__/__init__.cpython-37.pyc
A /app/utils/__pycache__/convert_obj_to_dxf.cpython-37.pyc
A /app/utils/__pycache__/field_file_assistant.cpython-37.pyc
A /app/utils/__pycache__/pcl_assistant.cpython-37.pyc
A /app/utils/__pycache__/temp_file_name.cpython-37.pyc
A /app/utils/__pycache__/vector_utils.cpython-37.pyc
A /app/utils/__pycache__/asc_helper.cpython-37.pyc
A /app/utils/__pycache__/path_zone_validator.cpython-37.pyc
A /app/utils/__pycache__/pdal_assistant.cpython-37.pyc
A /app/utils/__pycache__/ply_helper.cpython-37.pyc
A /app/utils/__pycache__/path_box_cropping.cpython-37.pyc
A /app/utils/__pycache__/skeleton_assistant.cpython-37.pyc
A /app/utils/__pycache__/classes.cpython-37.pyc
A /app/utils/__pycache__/las_helper.cpython-37.pyc
A /app/utils/__pycache__/path_finding.cpython-37.pyc
A /app/utils/__pycache__/path_zone_assistant.cpython-37.pyc
C /app/utils/commands
A /app/utils/commands/__pycache__
A /app/utils/commands/__pycache__/cloud_compare_commands.cpython-37.pyc
A /app/utils/commands/__pycache__/entwine_commands.cpython-37.pyc
A /app/utils/commands/__pycache__/medial_skeleton_commands.cpython-37.pyc
A /app/utils/commands/__pycache__/pdal_commands.cpython-37.pyc
A /app/utils/commands/__pycache__/poisson_recon_commands.cpython-37.pyc
A /app/utils/commands/__pycache__/__init__.cpython-37.pyc
C /app/config
C /app/config/settings
A /app/config/settings/__pycache__
A /app/config/settings/__pycache__/__init__.cpython-37.pyc
A /app/config/settings/__pycache__/base.cpython-37.pyc
A /app/config/settings/__pycache__/development.cpython-37.pyc
A /app/config/__pycache__
A /app/config/__pycache__/__init__.cpython-37.pyc
A /app/config/__pycache__/celery.cpython-37.pyc
A /app/config/__pycache__/urls.cpython-37.pyc
C /app/webapp
C /app/webapp/tasks_implementations
A /app/webapp/tasks_implementations/__pycache__
A /app/webapp/tasks_implementations/__pycache__/compute_mine_path.cpython-37.pyc
A /app/webapp/tasks_implementations/__pycache__/compute_mine_point_cloud_boundaries.cpython-37.pyc
A /app/webapp/tasks_implementations/__pycache__/compute_mine_point_cloud_path.cpython-37.pyc
A /app/webapp/tasks_implementations/__pycache__/compute_mine_point_cloud_walls.cpython-37.pyc
A /app/webapp/__pycache__
A /app/webapp/__pycache__/__init__.cpython-37.pyc
A /app/webapp/__pycache__/admin.cpython-37.pyc
A /app/webapp/__pycache__/apps.cpython-37.pyc
A /app/webapp/__pycache__/groups.cpython-37.pyc
A /app/webapp/__pycache__/mixins.cpython-37.pyc
A /app/webapp/__pycache__/models.cpython-37.pyc
A /app/webapp/__pycache__/signal_receivers.cpython-37.pyc
A /app/webapp/__pycache__/tasks.cpython-37.pyc
A /app/webapp/__pycache__/filters.cpython-37.pyc
A /app/webapp/__pycache__/forms.cpython-37.pyc
A /app/webapp/__pycache__/managers.cpython-37.pyc
A /app/webapp/__pycache__/signals.cpython-37.pyc
A /app/webapp/__pycache__/urls.cpython-37.pyc
C /app/webapp/views
A /app/webapp/views/__pycache__
A /app/webapp/views/__pycache__/__init__.cpython-37.pyc
A /app/webapp/views/__pycache__/invitation_views.cpython-37.pyc
A /app/webapp/views/__pycache__/mine_views.cpython-37.pyc
A /app/webapp/views/__pycache__/point_cloud_filter_views.cpython-37.pyc
A /app/webapp/views/__pycache__/viewer_views.cpython-37.pyc
C /home
C /home/django
A /home/django/.bash_history
A /home/django/.cache
A /home/django/.cache/matplotlib
A /home/django/.cache/matplotlib/tex.cache
A /home/django/.cache/matplotlib/fontlist-v300.json
A /home/django/.config
A /home/django/.config/matplotlib
A /home/django/.python_history

After container restart

docker stop 8ea78348ee36
docker system df
TYPE                TOTAL               ACTIVE              SIZE                RECLAIMABLE
Images              8                   4                   6.375GB             5.05GB (79%)
Containers          4                   4                   437.8kB             0B (0%)
Local Volumes       7                   2                   10.12kB             2.58kB (25%)
Build Cache         0                   0                   0B                  0B
df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G     0  3.9G   0% /dev
tmpfs           799M   28M  772M   4% /run
/dev/xvda1       16G  8.8G  6.2G  59% /
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
tmpfs           799M     0  799M   0% /run/user/1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment