Adding a volume to an existing kitematic container ?
Most every example showing volumes starts from an image via command line. How do I add a volume share to an existing kitematic container ?
(I have Docker Kitematic 0.12.0)
And to add, the documentation images showed here https://kitematic.com/docs/managing-volumes/ do not match what I'm seeing - (I'm running Docker on Mac)
What you're seeing is images that properly declare the volume that they allow user to map - Unfortunately not images are made equally, which results in no volume mapping shown.
For Kitematic to display the option, the image needs to have a VOLUME entry. Some early work was done to allow none-exposed volumes to work, but it hasn't been touched in a while:
https://github.com/docker/kitematic/pull/1202
This... makes no sense.
You don't have to have a VOLUME in the Dockerfile to work with mapping diskspace.
Give people the option to do host mapping of disks regardless of there being VOLUME or not.
@FrenchBen So why is this closed? It's still an issue. @jmorganca @seanli
@FrenchBen any chance we can get further comment on this? As @aaomidi said this isn't a requirement of docker that I'm aware of, just one that seems arbitrarily enforced here in kitematic.
This was also confusing and frustrating as a newer kitematic user. Under the Hostname/Ports tab I'm able to add port mappings, but under Volumes I'm not able to add volumes. As a docker user I'm expecting to be able to emulate -v in the same way I would -p in this scenario.
Here are the images from the first page of https://hub.docker.com/explore and if they include VOLUME
| Image | Uses VERSION |
|---|---|
| alpine | NO |
| nginx | NO |
| httpd | NO |
| redis | YES |
| busybox | NO |
| ubuntu | NO |
| mongo | YES |
| memcached | NO |
| mysql | YES |
| registry | YES |
| postgres | YES |
| Node | NO |
| consul | YES |
| centos | NO |
| hello-world | NO |
That's 9 NO and 6 YES.
Some other notable images, note the first one:
(chosen by name recognition)
| Image | Uses VERSION |
|---|---|
| docker | NO |
| logstash | NO |
| ruby | NO |
| wordpress | YES |
| php | NO |
| mariadb | YES |
| elasticsearch | YES |
| golang | NO |
| python | NO |
| debian | NO |
| java | NO |
| tomcat | NO |
| jenkins | YES |
That's 9 NO and 4 YES
I'm also interested in getting further comments on this. For me, not having a way to add a volume to an apache image defeats the purpose of using Kitematic for dev purposes.
Found Kinematic today and am abandoning it because of this issue. Could not for the life of me figure out why such a simple task was impossible to accomplish. Back to the command line I go.
There Is no way to add volumes on existent container using Kitematic? Little lost at this point...
+1 - As a developer, I would like to use local tools to work inside a docker container.
@FrenchBen is there any update on why this issue was closed? Or at least a "we have no plans to support this option" so someone else might pick up the work?
@bemcculley Kitematic detects the VOLUME entry to show the mapping, it's not a question of needing it for mapping to work as @aaomidi alluded to. There is no functionality in Kitematic to currently map a folder outside of the container to a folder inside of the container. IF someone wants to pickup the different PRs and make something happen, then it'll be in Kitematic.
It's an OSS project, anyone can contribute and help make it better. :)
That's a shame - I was looking for this feature as well. I can run the image on the command line and add a volume that way (obviously) but it's pretty poor to not be able to add volumes after the fact. I would love to see this feature supported.
@FrenchBen Maybe reopen this issue then? Obviously this is a major problem for a significant part of the community.
https://github.com/docker/kitematic/pull/3692 looks like it fixes this(and https://github.com/docker/kitematic/issues/2518) but it's been 2 months since any activity.
You can connect directly to the VM and run the docker commands from inside the VM with a -v flag.
In the settings > volumes tab I have access to [CHANGE] the local folder.
I confirmed the container will populate the folder with settings, although in my particular case I'm debugging why it fails to start. There may be some additional restrictions (aside from the /c/Users/). 🔮
Reopen, being able to add volume mappings from the UI should be a standard feature. Also should be able to choose any location to mount in on Windows host.
Signed, this feature would be very nice!
Love to see the fix for volume map in Kitematic
+1
+1