Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 711 Bytes

File metadata and controls

35 lines (24 loc) · 711 Bytes

export-docker-images

Script to export docker images from a name or docker-compose.yml.

If no tag is specified, the script look for associated tag version to know which one you export.

For now, it only works on with docker installed on the host running the script. In the future, external API would be used.

Dependencies

Packages

  • python
  • docker (if local usage)

Python module

  • docker
  • click

Usage

Without version (using latest)

./export_dockers.py --name influxdb

With specific version

./export_dockers.py --name influxdb:2.0.4

Export all images needed on a docker-compose.yml file

./export_dockers.py --dockercompose /home/myself/myapp/docker-compose.yml