roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

Allow importing a SINGLE FILE into docker, instead of only folders.

Open allanlwanga opened this issue 4 months ago • 0 comments

Tell us about your request Add the ability to import individual files directly into Docker Desktop, rather than being restricted to importing entire folders/directories.

Which service(s) is this request for? Docker Desktop (Windows/Mac/Linux)

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? The problem:

I'm always frustrated when I need to import a single .sql script, .json config file, or .cs code file for testing, but I'm forced to either:

Create a temporary folder structure just to hold one file Import an entire directory when I only need one file from it Use command-line workarounds instead of the GUI

This is especially cumbersome when:

Quickly testing database scripts or configuration changes Iterating on single files during development Sharing individual files between host and container for debugging Working with colleagues who prefer GUI tools over CLI

Are you currently working around the issue? YES but i have to do work arounds like:

  1. Temporary folder approach: Creating throwaway folders to hold single files, then importing the folder and navigating to the file inside the container
  2. Docker CLI: Using docker cp command to copy individual files: docker cp myfile.sql container:/path/

While these workarounds function, they add unnecessary steps and reduce the user-friendliness of Docker Desktop, particularly for users who prefer GUI workflows.

Additional context Use case example: When working on ASP.NET Core applications with SQL databases, I often need to quickly import a single .sql migration script or update a single appsettings.json file in a running container. Having to create folder structures or switch to CLI for such simple operations breaks the development flow. Expected behavior:

Right-click on a container → "Import File" option alongside "Import Folder" Simple file picker dialog to select individual files Direct import to specified container path

This feature would significantly improve developer experience and make Docker Desktop more competitive with other containerization tools that support single-file operations in their GUIs.

allanlwanga avatar Oct 24 '25 09:10 allanlwanga