An open API service indexing awesome lists of open source software.

https://github.com/gewoonjaap/exiftool-docker

Easily run ExifTool in a lightweight Docker container.
https://github.com/gewoonjaap/exiftool-docker

docker easy exiftool exiftool-docker lightweight

Last synced: over 1 year ago
JSON representation

Easily run ExifTool in a lightweight Docker container.

Awesome Lists containing this project

README

          

# ExifTool CLI Docker Container
[![Create and publish a Docker image](https://github.com/GewoonJaap/exiftool-docker/actions/workflows/publish.yml/badge.svg)](https://github.com/GewoonJaap/exiftool-docker/actions/workflows/publish.yml)

This repository provides a Docker container for the ExifTool CLI, allowing you to interact with the ExifTool CLI without installing it on your machine.

## Prerequisites

- Docker installed on your machine.

## Building the Docker Image (OPTIONAL)

To build the Docker image, run the following command:

```sh
docker build --build-arg TARGETARCH=$(uname -m) -t exiftool-docker:latest .
```

This command will build the Docker image for the appropriate architecture (amd64, arm, or arm64).

## Running the Docker Container
- Run the docker container with the following command:
```sh
docker run -it -v :/data ghcr.io/gewoonjaap/exiftool-docker:latest
```

This command will run the ExifTool CLI in the Docker container and mount the desired directory to the `/data` directory in the container.
Now attach a console to the Docker container and run the ExifTool CLI commands as you would on your local machine.

### Example command
You can replace `/data` with any other direction you want.
The `exiftool` executable is available in the container, in the exiftool/ folder, so you can run any ExifTool CLI command you would like.
```sh
cd exiftool
./exiftool "-FileCreateDate