Could you do that? It would be great. Could you tell me exactly which Docker image (debian) you were using? I'd like to test with that one too.
openmediavault-docker-gui Testing
-
- OMV 2.x
- nicjo814
-
-
I don't know what to do next...
Me neither, looks fine for me now. We can call the first curious guys about this plugin who started the initial discussion about docker last year and provided the initial explains, when i personally didn't understand it
-
Ah, that was a good idea
-
BTW the search image works 10/10 now!
-
Yes I was extremely happy when I found a way to actually make it work like I wanted to from the beginning.
-
Hello,
I reinstalled the VM and did some tests (with Snapshots )
First in installed the docker plugin and created a Snapshot
Then i activated the plugin an everything looks fine
I pulled the debian:jessie original image and I can start a container from the Image
I created a new image with a Dockerfile in Console through ssh and everything works fine
The new Image shows up in WebIF and I can start a Container from this image
Then I go back to the snapshot with installed plugin
I activated the the plugin and after activation i changed the base path
I pulled the debian:jessie original image and I can't start a container from the Image
I get the following messagesCode
Alles anzeigenFehler #0: exception 'OMVModuleDockerException' with message 'WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded. 732778b365c297114c788f76c4bfe50e20eade4fa4981e84d673a4a38dbd6121 Error response from daemon: Cannot start container 732778b365c297114c788f76c4bfe50e20eade4fa4981e84d673a4a38dbd6121: [8] System error: permission denied' in /usr/share/omvdocker/Utils.php:416 Stack trace: #0 /usr/share/openmediavault/engined/rpc/docker.inc(474): OMVModuleDockerUtil::exec('docker run -d -...', Array, 1) #1 [internal function]: OMVRpcServiceDocker->runContainer(Array, Array) #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array) #3 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('runContainer', Array, Array) #4 /usr/sbin/omv-engined(500): OMVRpc::exec('Docker', 'runContainer', Array, Array, 1) #5 {main}
I added this "cgroup_enable=memory swapaccount=1" to Kernel Command Line in /etc/default/grub, did an update-grub and reboot the system
according to this https://github.com/docker/docker/issues/14219After that i tried to create an Container from debian:jessie image and get the following message
CodeFehler #0: exception 'OMVModuleDockerException' with message '2c2c467ec0f882b975a69b2fa09cb699d857da2171f4dabb8ab373c2c9e0257d Error response from daemon: Cannot start container 2c2c467ec0f882b975a69b2fa09cb699d857da2171f4dabb8ab373c2c9e0257d: [8] System error: permission denied' in /usr/share/omvdocker/Utils.php:416 Stack trace: #0 /usr/share/openmediavault/engined/rpc/docker.inc(474): OMVModuleDockerUtil::exec('docker run -d -...', Array, 1) #1 [internal function]: OMVRpcServiceDocker->runContainer(Array, Array) #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array) #3 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('runContainer', Array, Array) #4 /usr/sbin/omv-engined(500): OMVRpc::exec('Docker', 'runContainer', Array, Array, 1) #5 {main}
The Container appears in the Container table, but i cannot start / stop / restart it, all Button are not accessible
This was written to /var/log/docker.log
Code
Alles anzeigentime="2015-09-01T11:36:05.579550678+02:00" level=info msg="Loading containers: done." time="2015-09-01T11:36:05.685654853+02:00" level=info msg="Daemon has completed initialization" time="2015-09-01T11:36:05.685748765+02:00" level=info msg="Docker daemon" commit=d12ea79 execdriver=native-0.2 graphdriver=aufs version=1.8.1 time="2015-09-01T11:36:23.190064009+02:00" level=info msg="GET /v1.20/version" time="2015-09-01T11:36:23.412871805+02:00" level=info msg="GET /images/json?all=0" time="2015-09-01T11:36:23.533217820+02:00" level=info msg="GET /containers/json?all=1" time="2015-09-01T11:36:23.534659407+02:00" level=info msg="GET /containers/732778b365c297114c788f76c4bfe50e20eade4fa4981e84d673a4a38dbd6121/json" time="2015-09-01T11:36:23.536107802+02:00" level=info msg="GET /images/json?all=1" time="2015-09-01T11:36:23.652702834+02:00" level=info msg="GET /images/4a5e6db8c0693a16de88b7559ded7c1cb804018571b137e13abb1713ce6a71cf/json" time="2015-09-01T11:36:23.654776040+02:00" level=info msg="GET /images/4a5e6db8c0693a16de88b7559ded7c1cb804018571b137e13abb1713ce6a71cf/json" time="2015-09-01T11:36:23.667813996+02:00" level=info msg="GET /images/json?all=0" time="2015-09-01T11:36:23.676163064+02:00" level=info msg="GET /images/4a5e6db8c0693a16de88b7559ded7c1cb804018571b137e13abb1713ce6a71cf/json" time="2015-09-01T11:36:23.765170873+02:00" level=info msg="GET /containers/json?all=1" time="2015-09-01T11:36:23.766922846+02:00" level=info msg="GET /containers/732778b365c297114c788f76c4bfe50e20eade4fa4981e84d673a4a38dbd6121/json" time="2015-09-01T11:36:23.768459014+02:00" level=info msg="GET /images/json?all=1" time="2015-09-01T11:36:23.837003171+02:00" level=info msg="GET /images/4a5e6db8c0693a16de88b7559ded7c1cb804018571b137e13abb1713ce6a71cf/json" time="2015-09-01T11:36:29.842048567+02:00" level=info msg="GET /containers/json?all=1" time="2015-09-01T11:36:29.845266963+02:00" level=info msg="GET /containers/732778b365c297114c788f76c4bfe50e20eade4fa4981e84d673a4a38dbd6121/json" time="2015-09-01T11:36:29.848114960+02:00" level=info msg="GET /images/json?all=1" time="2015-09-01T11:36:29.853072697+02:00" level=info msg="GET /images/4a5e6db8c0693a16de88b7559ded7c1cb804018571b137e13abb1713ce6a71cf/json" time="2015-09-01T11:36:36.534308290+02:00" level=info msg="POST /v1.20/containers/create?name=test2" time="2015-09-01T11:36:36.608086895+02:00" level=error msg="Couldn't run auplink before unmount: exec: \"auplink\": executable file not found in $PATH" time="2015-09-01T11:36:36.645329266+02:00" level=error msg="Couldn't run auplink before unmount: exec: \"auplink\": executable file not found in $PATH" time="2015-09-01T11:36:36.683057763+02:00" level=info msg="POST /v1.20/containers/2c2c467ec0f882b975a69b2fa09cb699d857da2171f4dabb8ab373c2c9e0257d/start" time="2015-09-01T11:36:37.149266730+02:00" level=warning msg="exit status 1" time="2015-09-01T11:36:37.318472387+02:00" level=error msg="Couldn't run auplink before unmount: exec: \"auplink\": executable file not found in $PATH" time="2015-09-01T11:36:37.412208025+02:00" level=error msg="Handler for POST /containers/{name:.*}/start returned error: Cannot start container 2c2c467ec0f882b975a69b2fa09cb699d857da2171f4dabb8ab373c2c9e0257d: [8] System error: permission denied" time="2015-09-01T11:36:37.412312230+02:00" level=error msg="HTTP Error" err="Cannot start container 2c2c467ec0f882b975a69b2fa09cb699d857da2171f4dabb8ab373c2c9e0257d: [8] System error: permission denied" statusCode=500 time="2015-09-01T11:38:16.954914700+02:00" level=info msg="GET /containers/json?all=1" time="2015-09-01T11:38:16.956567486+02:00" level=info msg="GET /containers/2c2c467ec0f882b975a69b2fa09cb699d857da2171f4dabb8ab373c2c9e0257d/json" time="2015-09-01T11:38:16.958084516+02:00" level=info msg="GET /images/json?all=1" time="2015-09-01T11:38:16.960037479+02:00" level=info msg="GET /images/4a5e6db8c0693a16de88b7559ded7c1cb804018571b137e13abb1713ce6a71cf/json" time="2015-09-01T11:38:16.962640628+02:00" level=info msg="GET /containers/732778b365c297114c788f76c4bfe50e20eade4fa4981e84d673a4a38dbd6121/json" time="2015-09-01T11:38:16.964656315+02:00" level=info msg="GET /images/json?all=1" time="2015-09-01T11:38:17.037714111+02:00" level=info msg="GET /images/4a5e6db8c0693a16de88b7559ded7c1cb804018571b137e13abb1713ce6a71cf/json"
So it looks like there are some problems with the external base path
-
Now I need more ideas on how to improve the plugin! My know-how of…
Maybe you can add the docker build command (Dockerfiles) in the WebIF with a shared Folder as location for Dockerfiles
-
-
@der-brumm-baer Thanks for a very thorough error report! I'll test this more in my own dev machine during the day.
-
Did you also relocate the base path? Do you run the command as root?
-
-
There seems to be some issue with Docker. I need to look into this in more detail, but can't do that right now. Google the warning message about swappiness to get some info on the issue.
-
-
Did that solve the issue that you couldn't start the container?
-
-
Hello,
I looked into /etc/default/docker
It looks like this in OMV Part
Code### Do not change these lines. They are added and updated by the OMV Docker GUI plugin. OMVDOCKER_API="-H unix:///var/run/docker.sock -H tcp://127.0.0.1:42005" OMVDOCKER_IMAGE_PATH="" DOCKER_OPTS="$DOCKER_OPTS $OMVDOCKER_API $OMVDOCKER_IMAGE_PATH" ### Do not add any configuration below this line. It will be removed when the plugin is removed
Is there something missing in the "OMVDOCKER_IMAGE_PATH" ? --> is this for the base path?
-
When you change the base path it should be in that variable (I think). Don't have the computer with me right now...
-
If you run ps aux | grep docker you will see current options used. -g is the option used to relocate the base path.
-
Hello,
I looked into /etc/default/docker
It looks like this in OMV Part
Code### Do not change these lines. They are added and updated by the OMV Docker GUI plugin. OMVDOCKER_API="-H unix:///var/run/docker.sock -H tcp://127.0.0.1:42005" OMVDOCKER_IMAGE_PATH="" DOCKER_OPTS="$DOCKER_OPTS $OMVDOCKER_API $OMVDOCKER_IMAGE_PATH" ### Do not add any configuration below this line. It will be removed when the plugin is removed
Is there something missing in the "OMVDOCKER_IMAGE_PATH" ? --> is this for the base path?
Is there something missing in the "OMVDOCKER_IMAGE_PATH" ? --> is this for the base path?
My output:
Code
Alles anzeigenmore /etc/default/docker # Docker Upstart and SysVinit configuration file # Customize location of Docker binary (especially for development testing). #DOCKER="/usr/local/bin/docker" # Use DOCKER_OPTS to modify the daemon startup options. #DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4" # If you need Docker to use an HTTP proxy, it can also be specified here. #export http_proxy="http://127.0.0.1:3128/" # This is also a handy place to tweak where Docker's temporary files go. #export TMPDIR="/mnt/bigdrive/docker-tmp" ### Do not change these lines. They are added and updated by the OMV Docker GUI plugin. OMVDOCKER_API="-H unix:///var/run/docker.sock -H tcp://127.0.0.1:42005" OMVDOCKER_IMAGE_PATH="-g /media/be506936-c4ad-41d0-8e1e-d1e3bde164a0/docker" DOCKER_OPTS="$DOCKER_OPTS $OMVDOCKER_API $OMVDOCKER_IMAGE_PATH" ### Do not add any configuration below this line. It will be removed when the plugin is removed
-
Hello,
Yes, it is in there, i have looked into the wrong snapshot
In the correct snapshot, it looks like
Code### Do not change these lines. They are added and updated by the OMV Docker GUI plugin. OMVDOCKER_API="-H unix:///var/run/docker.sock -H tcp://127.0.0.1:42005" OMVDOCKER_IMAGE_PATH="-g /media/67c66cd1-2881-400c-8e35-761a8080aa6c/s_docker" DOCKER_OPTS="$DOCKER_OPTS $OMVDOCKER_API $OMVDOCKER_IMAGE_PATH" ### Do not add any configuration below this line. It will be removed when the plugin is removedroot@server-nas-test:~#
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!