kitematic icon indicating copy to clipboard operation
kitematic copied to clipboard

Adding a volume to an existing kitematic container ?

Open sgentile opened this issue 10 years ago • 35 comments

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)

sgentile avatar Aug 20 '16 20:08 sgentile

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)

sgentile avatar Aug 20 '16 21:08 sgentile

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

FrenchBen avatar Aug 23 '16 02:08 FrenchBen

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.

aaomidi avatar Oct 01 '17 16:10 aaomidi

@FrenchBen So why is this closed? It's still an issue. @jmorganca @seanli

stereokai avatar Jan 21 '18 12:01 stereokai

@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

Dgc2002 avatar Feb 20 '18 21:02 Dgc2002

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.

incompletude avatar Feb 25 '18 06:02 incompletude

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.

oblogic7 avatar Mar 24 '18 02:03 oblogic7

There Is no way to add volumes on existent container using Kitematic? Little lost at this point...

sistematico avatar Apr 23 '18 22:04 sistematico

+1 - As a developer, I would like to use local tools to work inside a docker container.

richard-fairthorne avatar May 03 '18 13:05 richard-fairthorne

@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 avatar May 25 '18 20:05 bemcculley

@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. :)

FrenchBen avatar May 30 '18 17:05 FrenchBen

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.

tombuckley91 avatar May 31 '18 12:05 tombuckley91

@FrenchBen Maybe reopen this issue then? Obviously this is a major problem for a significant part of the community.

stereokai avatar Jun 01 '18 10:06 stereokai

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.

10XL avatar Jun 01 '18 12:06 10XL

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/). 🔮

ragaar avatar Jul 19 '18 01:07 ragaar

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.

LiamKarlMitchell avatar Sep 12 '18 23:09 LiamKarlMitchell

Signed, this feature would be very nice!

Marahin avatar Oct 01 '18 14:10 Marahin

Love to see the fix for volume map in Kitematic

leksa avatar Oct 16 '18 11:10 leksa

+1

rsunmoto avatar Nov 05 '18 20:11 rsunmoto

+1

saintz666 avatar Nov 10 '18 21:11 saintz666