Allow for volumes without host-mapping them to VirtualBox #209
Comments
👍 Thanks for reporting this! Seems like many of the official hub repositories such as It seems like a quick fix here is just to add the ability to disable a container's volume. Keep an eye out for a fix! |
Alright and thanks for the quick reply |
Currently, it's not possible to "disable" a volume if an image defines one. There's work in progress to allow However,
Using a "regular" volume in stead of a bind-mounted volume could solve the permissions issue. Another solution is to |
I know you can't disable a volume, but if you run a container without giving it volume information it will create a random volume inside the docker storage directory. This can be an easy and quick fix for now especially if the user does not care about having an accessible volume |
@rmb938 👍 alright! This put me on the "wrong foot";
|
:+1 Wrong wording on my part! Sorry! I meant adding away to disable the host binding altogether. Sent from my iPhone On Tue, Mar 3, 2015 at 12:33 PM, Sebastiaan van Stijn
|
No problem, and no harm done! my comment may be useful for people finding this issue and are new to Docker and not familiar with all aspects of volumes 😄 |
@thaJeztah Hugely useful! That comment should be a blog post post somewhere 😃 |
Another example for this Problem is the elsdoerfer / thumbor container. |
+1 this is a pretty important thing here...I have the same issue with many containers |
+1 for the comment above , Getting no love from the rabbit container setup , Cannot create directory `/var/lib/rabbitmq/mnesia': Permission denied. permissions error occurring on many other containers , making most unuseable |
Sorry for the delay in getting a patch out and thanks for all the feedback On Saturday, March 14, 2015, Paul Mortimer notifications@github.com wrote:
|
+1 for a fix to this. This is a petty big blocker. |
+1 please fix this, i want to use mongodb |
+1 please fix so I can try mqadvanced |
@boot2docker ist struggeling with the same Problem 😒 |
+1. This is a huge blocker :( |
Does Kitematic use Boot2Docker underneath or replace it? This thread has several suggestions for fixing the issue with Boot2Docker. A promising suggestion is to use NFS. |
What are the solid work-arounds to date? Was going to try the NFS solution, but not sure how to create the Kitematic-VM equivalent for: |
What's the release ETA for 0.5.11? |
This is a massive blocker, I think virtualbox share should be ditched and NFS (or other) used instead (NFS even performs better). |
+1 official/mysql doesn't work because of permission problems |
+1 Mongodb official does not work |
+1 Mongodb official or postgres official does not seem to work |
Solved it for me with another image which does not export the data volume. |
ETA for 0.5.11 is Friday. Sorry again in a delay with the update |
+1 for mongodb. No issues with Rabbitmq in the same Kitematic instance, though. |
+1 for elasticsearch 1.4.5, mysql 5.6.26, rabbitmq 3.5.4-management ... all of these won't start up if the volume has been enabled. Redis 3.0.3, though, seems to be able to run with an enabled volume ... |
+1 |
Is there a work around? |
My work around : install Linux on your laptop and use terminal ;) |
+1 kind of makes this exercise futile |
+1 also ;) |
+1 blocks rabbitmq, will be happy to see workaround. |
That issue exists for quite long time, basically preventing to use docker-compose for devepment environments. It seems to me, that it's not related to Kitematic itself, but rather docker (docker-machine) problem. Are there any connected issues? |
+1 I am using latest version in Kitematic. After we are setting "Enable Volumes", we are getting the following the errors. Postgres
Mysql
Mongo
|
is there any ETA on this issue?, this is very simple and serious hassle for average dev to use kinematic. @JeffDM @elesant |
Really big issue, you just can't use Mac as host with dir shared with container (really useful for development). |
+1, I can't really use this with mariadb without persisting the data... |
@eturino I understand the issue at hand, but you should be able to create a data container and simply map mariadb to it - You can copy your data to the container and back it up pretty easily as well. |
+1 |
+1 Struggling a lot with mysql on docker :( due to this. |
its funny one solution to solve this issue is get back to one vm image and dont waste time for trying change this behavior ;) |
ya... this is a joke. done wasting hours with docker... 5 minutes with vmware and im good to go... |
@Lenzcrafter I'd be interested in knowing how |
I'm stuck with Postgres for 2 days, is there any workaround that can work with both development (OSX) and production (Linux ubuntu) machines? |
@blazeeboy You can setup a data volume and have Postgres write to it. The same volume can be used on a production machine as well. |
@FrenchBen How can we do that? because as for now the official Postgres image doesn't boot and produces this output
On OSX 10.11.4, Docker tools installed 24 hours ago, so it's the latest I think. |
@blazeeboy Something like this would work:
If you need to backup/restore/migrate your data, follow the following: container logs:
If you remove the postgres container and create a new one, the container logs will be (notice no DB creation) 🎉 :
|
Instead of a data-only container, you can also use a named volume;
|
For mongodb, upgrading to the Docker Beta (1.13.0-beta39 (15140)) fixed the issues I was having and others have reported above. Docker Beta for Mac |
Databases like mongo, mysql and rabbitmq get permission denied when trying to start. This has to do with the volume permissions. Being that having access to that data isn't really necessary I would remove the volume but there doesn't seem to be a way to do that either.
The text was updated successfully, but these errors were encountered: