Skip to Content
🚀 Drifty v2.1.0 is live! Explore the latest features, join the community or report an issue!

Using Drifty in Docker

Drifty can be run in a Docker container, which allows you to use it without installing it directly on your system. This is particularly useful for testing or running Drifty in isolated environments.

Prerequisites

Ensure you have Docker installed on your system. You can download it from the official Docker website .

Platform-Specific Requirements

Running Drifty in Docker

  1. Open your terminal.
  2. Pull the latest version of the Drifty Docker image by running the following command:
    docker pull ghcr.io/saptarshisarkar12/drifty-gui:latest
  3. If you are a Linux user or using WSL2, you may need to allow Docker to access your X server. You can do this by running the following command:
    xhost +local:docker
  4. Once the image is pulled, you can run it using the following command:
    docker run -e DISPLAY=$DISPLAY --net=host -v /tmp/.X11-unix:/tmp/.X11-unix ghcr.io/saptarshisarkar12/drifty-gui:latest
  5. Drifty GUI should now open on your screen.

Important Notes

  • To download files to a specific local directory, you need to mount that directory as a volume for Drifty. For example:

    # For GUI version docker run -e DISPLAY=$DISPLAY --net=host -v /home/username/Downloads:/root/Downloads -v /tmp/.X11-unix:/tmp/.X11-unix ghcr.io/saptarshisarkar12/drifty-gui:latest # For CLI version docker run -it -v /home/username/Downloads:/root/Downloads ghcr.io/saptarshisarkar12/drifty-cli:latest
  • For persistent data storage and faster initialization, you can mount the Drifty configuration directory:

    # For GUI version docker run -e DISPLAY=$DISPLAY --net=host -v /home/username/.drifty:/root/.drifty -v /tmp/.X11-unix:/tmp/.X11-unix ghcr.io/saptarshisarkar12/drifty-gui:latest # For CLI version docker run -it -v /home/username/.drifty:/root/.drifty ghcr.io/saptarshisarkar12/drifty-cli:latest

Available Version Tags

Version TypeTagStatusExample Usage
Latest StablelatestAvailableghcr.io/saptarshisarkar12/drifty-cli:latest
Release CandidatercAvailableghcr.io/saptarshisarkar12/drifty-cli:rc
BetabetaAvailableghcr.io/saptarshisarkar12/drifty-cli:beta
AlphaalphaNot Available-
Branch-specific<branch-name>Availableghcr.io/saptarshisarkar12/drifty-cli:master

Troubleshooting

Permission Issues

If you encounter permission issues when mounting volumes, ensure that:

  • The target directories exist on your host machine
  • You have the correct permissions for the directories
  • For Linux users, remember to use sudo with docker commands

Display Issues (GUI Version)

If the GUI doesn’t appear:

  • Ensure X11 forwarding is properly configured
  • Check if the DISPLAY environment variable is set correctly
  • For WSL2 users, verify that an X server is running on Windows

Platform-Specific Considerations

Linux

  • Use Docker Engine directly instead of Docker Desktop
  • Always prefix docker commands with sudo
  • The mounted paths should match your actual system paths

Windows (WSL2)

  • Ensure paths are in Linux format when mounting volumes
  • Use Windows paths in WSL2 format (e.g., /mnt/c/Users/...)

macOS

  • XQuartz must be running before starting the GUI version
  • Consider using absolute paths when mounting volumes