Docker GUI plugin now stable

    • OMV 2.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • fafdk wrote:

      Bit lazy, but I read the guide, which is nice, also looked through the forum but no avail. I have some trouble with permissions on the volume folders. I installed a Logitechmediaserver in Docker, and can mount my /music folder ok, but the medie-scanner cannot scan subfolders in the mount. There must be something with Docker and user/group. A little hint would be nice.

      THX


      A "quick" solution would probably be to give execute and read rights on all subdirectories and read rights on all files to "all" (chmod a+rx and chmod a+r respectively).

      EDIT: I forgot to ask, which docker image is it you're using for LMS? I'm searching for one myself :)

      The post was edited 1 time, last by nicjo814 ().

    • nicjo814 wrote:

      fafdk wrote:

      Bit lazy, but I read the guide, which is nice, also looked through the forum but no avail. I have some trouble with permissions on the volume folders. I installed a Logitechmediaserver in Docker, and can mount my /music folder ok, but the medie-scanner cannot scan subfolders in the mount. There must be something with Docker and user/group. A little hint would be nice.

      THX


      A "quick" solution would probably be to give execute and read rights on all subdirectories and read rights on all files to "all" (chmod a+rx and chmod a+r respectively).

      EDIT: I forgot to ask, which docker image is it you're using for LMS? I'm searching for one myself :)


      I'm using this one: hub.docker.com/r/jinglemansweep/logitechmediaserver/

      It's running fine and I can even use the 3'rd party Spotify plugin on it with my classic players. I had an install of LMS running on the server, which I removed, and now it's running in docker using very few resources. It's even faster now. Docker is really a very nice addition to the server. It amazes me how light it's running. I have been using KVM on another server for a decade and I really have to change my paradigm on using containers instead.

      Ok, I can chmod the folders.

      Thank you for your answer.
    • I think it may be a good idea to change the default filesystem driver to "devicemapper". It looks like AUFS (the current default) has some bugs with Fedora based containers. Some RPMs try to use "cpio" to install things and it turns out AUFS doesn't quite work with that when running inside of an LXC container, you get a CAP_CPIO error.

      Adding

      Source Code

      1. DOCKER_OPTS="-s devicemapper"


      to the `/etc/default/docker` fixed this for me and I was able to get FreeIPA to start afterwards too.
    • pyspider docker

      I am trying to install pyspider with the commands taken from docs.pyspider.org/en/latest/Running-pyspider-with-Docker/ i am trying to install pyspider an apparently I am doing something wrong in the gui.

      The commands are as follows:

      Source Code

      1. # mysql
      2. docker run --name mysql -d -v /data/mysql:/var/lib/mysql -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mysql:latest
      3. # rabbitmq
      4. docker run --name rabbitmq -d rabbitmq:latest
      5. # phantomjs
      6. docker run --name phantomjs -d binux/pyspider:latest phantomjs
      7. # result worker
      8. docker run --name result_worker -m 128m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest result_worker
      9. # processor, run multiple instance if needed.
      10. docker run --name processor -m 256m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest processor
      11. # fetcher, run multiple instance if needed.
      12. docker run --name fetcher -m 256m -d --link phantomjs:phantomjs --link rabbitmq:rabbitmq binux/pyspider:latest fetcher --no-xmlrpc
      13. # scheduler
      14. docker run --name scheduler -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest scheduler
      15. # webui
      16. docker run --name webui -m 256m -d -p 5000:5000 --link mysql:mysql --link rabbitmq:rabbitmq --link scheduler:scheduler --link phantomjs:phantomjs binux/pyspider:latest webui
      Display All

      So I am doing the following:
      1. I install mysql from the docker gui adding MYSQL_ALLOW_EMPTY_PASSWORD=yes at the environment variables and /data/mysql /var/lib/mysql to the "Volumes and Bind mounts"
      2. I install rabbitmq from the docker gui
      3. "result worker" This is the interesting part: The command:

      Source Code

      1. docker run --name result_worker -m 128m --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest result_worker

      I interpre it as putting:
      container name:result_worker
      extra arguments: -m 128m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest result_worker
      4. the same for the other processes.

      The problem:
      • All the CONTAINERS show STATUS: Restarting() except the rabbitmq container.
      • Messages log:
        • aufs au_opts_verify:1570:docker[15860]: dirperm1 breaks the protection by the permission bits on the lower branch
        • device veth99d277c entered promiscuous mode
        • IPv6: ADDRCONF(NETDEV_UP): vethe253ed7: link is not ready
        • docker0: port 1(veth99d277c) entered forwarding state
        • docker0: port 1(veth99d277c) entered disabled state
        • IPv6: ADDRCONF(NETDEV_CHANGE): vethe253ed7: link becomes ready


      I suspect it has something to do with the way the way I try to start linked containers. Any ideas? What is the proper way to use "--link" docker parameters?
    • fafdk wrote:

      I'm using this one: hub.docker.com/r/jinglemansweep/logitechmediaserver/

      It's running fine and I can even use the 3'rd party Spotify plugin on it with my classic players. I had an install of LMS running on the server, which I removed, and now it's running in docker using very few resources. It's even faster now. Docker is really a very nice addition to the server. It amazes me how light it's running. I have been using KVM on another server for a decade and I really have to change my paradigm on using containers instead.

      Ok, I can chmod the folders.

      Thank you for your answer.


      I looked at that image, but it's using a build of LMS that's about a year old. I'm not sure how much development has gone into the software during this time (maybe none) but I decided to make my own version of an LMS image. It's using the latest (24:th of October) nightly build of the 7.9 branch and also allows you to specify user/group (UID/GID) that should run the service. This also makes it possible to run LMS without having to make your music collection world readable. Give it a try if you want :) It's called nicjo814/docker-lms
    • ikogan wrote:

      I think it may be a good idea to change the default filesystem driver to "devicemapper". It looks like AUFS (the current default) has some bugs with Fedora based containers. Some RPMs try to use "cpio" to install things and it turns out AUFS doesn't quite work with that when running inside of an LXC container, you get a CAP_CPIO error.

      Adding

      Source Code

      1. DOCKER_OPTS="-s devicemapper"


      to the `/etc/default/docker` fixed this for me and I was able to get FreeIPA to start afterwards too.


      Introducing a setting that allows you to change file system driver sounds like a good idea. I'm a bit reluctant to change the default though since I'm not sure what other effects that might have on running systems. I don't think I'll be able to build/test it in quite some time I'm afraid...
    • pyspider docker

      Yes it seems to be working. I had to sudo everything. There are a few errors but the webui is operational.
      I also did a

      Source Code

      1. sudo apt-get install aufs-tools

      but it was probably unnecessary because even there was an "auplink" error the container was running
      Half the result here, half after the time limit...

      Source Code

      1. antman@pluto:~$ sudo docker run --name mysql -d -v /data/mysql:/var/lib/mysql -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mysql:latest
      2. INFO[0355] POST /v1.20/containers/create?name=mysql
      3. WARN[0355] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      4. ERRO[0355] Handler for POST /containers/create returned error: No such image: mysql:latest (tag: latest)
      5. ERRO[0355] HTTP Error err=No such image: mysql:latest (tag: latest) statusCode=404
      6. Unable to find image 'mysql:latest' locally
      7. INFO[0355] POST /v1.20/images/create?fromImage=mysql&tag=latest
      8. latest: Pulling from library/mysql
      9. d0ca40da9e35: Pull complete
      10. Status: Downloaded newer image for mysql:latest
      11. INFO[0571] POST /v1.20/containers/create?name=mysql
      12. WARN[0571] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      13. ERRO[0571] Couldn't run auplink before unmount: exec: "auplink": executable file not found in $PATH
      14. WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      15. 71faf233cc3875aabbdccea6d7fb47761b153e25d56ab347424540ceefa27fa4
      16. INFO[0571] POST /v1.20/containers/71faf233cc3875aabbdccea6d7fb47761b153e25d56ab347424540ceefa27fa4/start
      17. WARN[0571] Your kernel does not support OOM notifications: There is no path for "memory" in state
      18. antman@pluto:~$ docker run --name rabbitmq -d rabbitmq:latest
      19. Post http:///var/run/docker.sock/v1.20/containers/create?name=rabbitmq: dial unix /var/run/docker.sock: permission denied.
      20. * Are you trying to connect to a TLS-enabled daemon without TLS?
      21. * Is your docker daemon up and running?
      22. antman@pluto:~$ sudo docker run --name rabbitmq -d rabbitmq:latest
      23. INFO[0652] POST /v1.20/containers/create?name=rabbitmq
      24. WARN[0652] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      25. ERRO[0652] Couldn't run auplink before unmount: exec: "auplink": executable file not found in $PATH
      26. ERRO[0653] Couldn't run auplink before unmount: exec: "auplink": executable file not found in $PATH
      27. WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      28. 3d866d983b281bcb374d8c40a91db8e5925a9c08c173d7724af2c3f43eab026e
      29. INFO[0653] POST /v1.20/containers/3d866d983b281bcb374d8c40a91db8e5925a9c08c173d7724af2c3f43eab026e/start
      30. WARN[0653] Your kernel does not support OOM notifications: There is no path for "memory" in state
      31. antman@pluto:~$ sudo apt-get install aufs-tools
      32. Reading package lists... Done
      33. Building dependency tree
      34. Reading state information... Done
      35. The following NEW packages will be installed:
      36. aufs-tools
      37. 0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
      38. Need to get 91.9 kB of archives.
      39. After this operation, 174 kB of additional disk space will be used.
      40. Get:1 http://ftp.gr.debian.org/debian/ wheezy/main aufs-tools amd64 1:3.0+20120411-2 [91.9 kB]
      41. Fetched 91.9 kB in 0s (225 kB/s)
      42. Selecting previously unselected package aufs-tools.
      43. (Reading database ... 55946 files and directories currently installed.)
      44. Unpacking aufs-tools (from .../aufs-tools_1%3a3.0+20120411-2_amd64.deb) ...
      45. Processing triggers for man-db ...
      46. Setting up aufs-tools (1:3.0+20120411-2) ...
      47. [master edac8e4] committing changes in /etc after apt run
      48. Author: antman <antman@pluto.lan>
      49. 2 files changed, 82 insertions(+)
      50. create mode 100644 default/aufs
      51. Creating index of upgradeable packages ...
      52. Creating index of openmediavault plugins ...
      53. antman@pluto:~$ sudo docker run --name mysql -d -v /data/mysql:/var/lib/mysql -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mysql:latest
      54. INFO[0816] POST /v1.20/containers/create?name=mysql
      55. WARN[0816] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      56. ERRO[0816] Handler for POST /containers/create returned error: Conflict. The name "mysql" is already in use by container 71faf233cc38. You have to delete (or rename) that container to be able to reuse that name.
      57. ERRO[0816] HTTP Error err=Conflict. The name "mysql" is already in use by container 71faf233cc38. You have to delete (or rename) that container to be able to reuse that name. statusCode=409
      58. Error response from daemon: Conflict. The name "mysql" is already in use by container 71faf233cc38. You have to delete (or rename) that container to be able to reuse that name.
      59. antman@pluto:~$ sudo docker run --name rabbitmq -d rabbitmq:latest
      60. INFO[0822] POST /v1.20/containers/create?name=rabbitmq
      61. WARN[0822] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      62. ERRO[0822] Handler for POST /containers/create returned error: Conflict. The name "rabbitmq" is already in use by container 3d866d983b28. You have to delete (or rename) that container to be able to reuse that name.
      63. ERRO[0822] HTTP Error err=Conflict. The name "rabbitmq" is already in use by container 3d866d983b28. You have to delete (or rename) that container to be able to reuse that name. statusCode=409
      64. Error response from daemon: Conflict. The name "rabbitmq" is already in use by container 3d866d983b28. You have to delete (or rename) that container to be able to reuse that name.
      Display All

    • --> CONTINUED from previous due to char limit

      Source Code

      1. antman@pluto:~$ docker ps
      2. Get http:///var/run/docker.sock/v1.20/containers/json: dial unix /var/run/docker.sock: permission denied.
      3. * Are you trying to connect to a TLS-enabled daemon without TLS?
      4. * Is your docker daemon up and running?
      5. antman@pluto:~$ sudo docker ps
      6. INFO[0840] GET /v1.20/containers/json
      7. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
      8. 3d866d983b28 rabbitmq:latest "/docker-entrypoint.s" 3 minutes ago Up 3 minutes 4369/tcp, 5672/tcp, 25672/tcp rabbitmq
      9. 71faf233cc38 mysql:latest "/entrypoint.sh mysql" 4 minutes ago Up 4 minutes 3306/tcp mysql
      10. antman@pluto:~$ docker run --name phantomjs -d binux/pyspider:latest phantomjs
      11. Post http:///var/run/docker.sock/v1.20/containers/create?name=phantomjs: dial unix /var/run/docker.sock: permission denied.
      12. * Are you trying to connect to a TLS-enabled daemon without TLS?
      13. * Is your docker daemon up and running?
      14. antman@pluto:~$ sudo docker run --name phantomjs -d binux/pyspider:latest phantomjs
      15. INFO[0854] POST /v1.20/containers/create?name=phantomjs
      16. WARN[0854] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      17. WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      18. 4a14acb0d99d621eaa5fba9d60275eb97c2da871aa93e39f86f212c208a7325f
      19. INFO[0854] POST /v1.20/containers/4a14acb0d99d621eaa5fba9d60275eb97c2da871aa93e39f86f212c208a7325f/start
      20. WARN[0855] Your kernel does not support OOM notifications: There is no path for "memory" in state
      21. antman@pluto:~$ docker run --name result_worker -m 128m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest result_worker
      22. Post http:///var/run/docker.sock/v1.20/containers/create?name=result_worker: dial unix /var/run/docker.sock: permission denied.
      23. * Are you trying to connect to a TLS-enabled daemon without TLS?
      24. * Is your docker daemon up and running?
      25. antman@pluto:~$ sudo docker run --name result_worker -m 128m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest result_worker
      26. INFO[0866] POST /v1.20/containers/create?name=result_worker
      27. WARN[0866] Your kernel does not support memory limit capabilities. Limitation discarded.
      28. WARN[0866] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      29. 3a49b331227e3a4ac70f73a9c706f2d00d725d37e7b072a43c5c19044a93a1bd
      30. INFO[0866] POST /v1.20/containers/3a49b331227e3a4ac70f73a9c706f2d00d725d37e7b072a43c5c19044a93a1bd/start
      31. antman@pluto:~$ WARN[0867] Your kernel does not support OOM notifications: There is no path for "memory" in state
      32. antman@pluto:~$ docker run --name processor -m 256m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest processor
      33. Post http:///var/run/docker.sock/v1.20/containers/create?name=processor: dial unix /var/run/docker.sock: permission denied.
      34. * Are you trying to connect to a TLS-enabled daemon without TLS?
      35. * Is your docker daemon up and running?
      36. antman@pluto:~$ sudo docker run --name processor -m 256m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest processor
      37. INFO[0911] POST /v1.20/containers/create?name=processor
      38. WARN[0911] Your kernel does not support memory limit capabilities. Limitation discarded.
      39. WARN[0911] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      40. 7bdfd66fbc3889dfbe008996a60356eaab84043c59d5d9a9e3fbfe058812db85
      41. INFO[0912] POST /v1.20/containers/7bdfd66fbc3889dfbe008996a60356eaab84043c59d5d9a9e3fbfe058812db85/start
      42. WARN[0912] Your kernel does not support OOM notifications: There is no path for "memory" in state
      43. antman@pluto:~$ sudo docker ps
      44. INFO[0919] GET /v1.20/containers/json
      45. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
      46. 7bdfd66fbc38 binux/pyspider:latest "pyspider processor" 8 seconds ago Up 7 seconds 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp processor
      47. 3a49b331227e binux/pyspider:latest "pyspider result_work" 53 seconds ago Up 52 seconds 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp result_worker
      48. 4a14acb0d99d binux/pyspider:latest "pyspider phantomjs" About a minute ago Up About a minute 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp phantomjs
      49. 3d866d983b28 rabbitmq:latest "/docker-entrypoint.s" 4 minutes ago Up 4 minutes 4369/tcp, 5672/tcp, 25672/tcp rabbitmq
      50. 71faf233cc38 mysql:latest "/entrypoint.sh mysql" 5 minutes ago Up 5 minutes 3306/tcp mysql
      51. antman@pluto:~$ sudo docker run --name fetcher -m 256m -d --link phantomjs:phantomjs --link rabbitmq:rabbitmq binux/pyspider:latest fetcher --no-xmlrpc
      52. INFO[0928] POST /v1.20/containers/create?name=fetcher
      53. WARN[0928] Your kernel does not support memory limit capabilities. Limitation discarded.
      54. WARN[0928] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      55. cf1b75d3ee431c85015352fdf051863b335863ce9e48087b36b6bd34e97d21b8
      56. INFO[0929] POST /v1.20/containers/cf1b75d3ee431c85015352fdf051863b335863ce9e48087b36b6bd34e97d21b8/start
      57. antman@pluto:~$ WARN[0930] Your kernel does not support OOM notifications: There is no path for "memory" in state
      58. antman@pluto:~$ sudo docker run --name scheduler -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest scheduler
      59. INFO[0944] POST /v1.20/containers/create?name=scheduler
      60. WARN[0944] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      61. WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      62. dc2830d9021a2ab04389d8b15cabfb3a5cdba6ac5c8df058085a7cb487753573
      63. INFO[0945] POST /v1.20/containers/dc2830d9021a2ab04389d8b15cabfb3a5cdba6ac5c8df058085a7cb487753573/start
      64. WARN[0945] Your kernel does not support OOM notifications: There is no path for "memory" in state
      65. antman@pluto:~$ sudo docker run --name webui -m 256m -d -p 5000:5000 --link mysql:mysql --link rabbitmq:rabbitmq --link scheduler:scheduler --link phantomjs:phantomjs binux/pyspider:latest webui
      66. INFO[0953] POST /v1.20/containers/create?name=webui
      67. WARN[0953] Your kernel does not support memory limit capabilities. Limitation discarded.
      68. WARN[0953] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      69. b9b6737a163a8414d458cd3c44bc0085bdba6de9fe92a19379fb692606538063
      70. INFO[0953] POST /v1.20/containers/b9b6737a163a8414d458cd3c44bc0085bdba6de9fe92a19379fb692606538063/start
      71. WARN[0954] Your kernel does not support OOM notifications: There is no path for "memory" in state
      72. antman@pluto:~$ docker ps
      73. Get http:///var/run/docker.sock/v1.20/containers/json: dial unix /var/run/docker.sock: permission denied.
      74. * Are you trying to connect to a TLS-enabled daemon without TLS?
      75. * Is your docker daemon up and running?
      76. antman@pluto:~$ sudo docker ps
      77. INFO[1028] GET /v1.20/containers/json
      78. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
      79. b9b6737a163a binux/pyspider:latest "pyspider webui" About a minute ago Up About a minute 23333/tcp, 24444/tcp, 0.0.0.0:5000->5000/tcp, 25555/tcp webui
      80. dc2830d9021a binux/pyspider:latest "pyspider scheduler" About a minute ago Up About a minute 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp scheduler
      81. cf1b75d3ee43 binux/pyspider:latest "pyspider fetcher --n" About a minute ago Up About a minute 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp fetcher
      82. 7bdfd66fbc38 binux/pyspider:latest "pyspider processor" About a minute ago Up About a minute 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp processor
      83. 3a49b331227e binux/pyspider:latest "pyspider result_work" 2 minutes ago Up 2 minutes 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp result_worker
      84. 4a14acb0d99d binux/pyspider:latest "pyspider phantomjs" 2 minutes ago Up 2 minutes 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp phantomjs
      85. 3d866d983b28 rabbitmq:latest "/docker-entrypoint.s" 6 minutes ago Up 6 minutes 4369/tcp, 5672/tcp, 25672/tcp rabbitmq
      86. 71faf233cc38 mysql:latest "/entrypoint.sh mysql" 7 minutes ago Up 7 minutes 3306/tcp mysql
      Display All
    • pyspider docker

      --> continued due to char limit

      Source Code

      1. antman@pluto:~$ docker ps
      2. Get http:///var/run/docker.sock/v1.20/containers/json: dial unix /var/run/docker.sock: permission denied.
      3. * Are you trying to connect to a TLS-enabled daemon without TLS?
      4. * Is your docker daemon up and running?
      5. antman@pluto:~$ sudo docker ps
      6. INFO[0840] GET /v1.20/containers/json
      7. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
      8. 3d866d983b28 rabbitmq:latest "/docker-entrypoint.s" 3 minutes ago Up 3 minutes 4369/tcp, 5672/tcp, 25672/tcp rabbitmq
      9. 71faf233cc38 mysql:latest "/entrypoint.sh mysql" 4 minutes ago Up 4 minutes 3306/tcp mysql
      10. antman@pluto:~$ docker run --name phantomjs -d binux/pyspider:latest phantomjs
      11. Post http:///var/run/docker.sock/v1.20/containers/create?name=phantomjs: dial unix /var/run/docker.sock: permission denied.
      12. * Are you trying to connect to a TLS-enabled daemon without TLS?
      13. * Is your docker daemon up and running?
      14. antman@pluto:~$ sudo docker run --name phantomjs -d binux/pyspider:latest phantomjs
      15. INFO[0854] POST /v1.20/containers/create?name=phantomjs
      16. WARN[0854] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      17. WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      18. 4a14acb0d99d621eaa5fba9d60275eb97c2da871aa93e39f86f212c208a7325f
      19. INFO[0854] POST /v1.20/containers/4a14acb0d99d621eaa5fba9d60275eb97c2da871aa93e39f86f212c208a7325f/start
      20. WARN[0855] Your kernel does not support OOM notifications: There is no path for "memory" in state
      21. antman@pluto:~$ docker run --name result_worker -m 128m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest result_worker
      22. Post http:///var/run/docker.sock/v1.20/containers/create?name=result_worker: dial unix /var/run/docker.sock: permission denied.
      23. * Are you trying to connect to a TLS-enabled daemon without TLS?
      24. * Is your docker daemon up and running?
      25. antman@pluto:~$ sudo docker run --name result_worker -m 128m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest result_worker
      26. INFO[0866] POST /v1.20/containers/create?name=result_worker
      27. WARN[0866] Your kernel does not support memory limit capabilities. Limitation discarded.
      28. WARN[0866] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      29. 3a49b331227e3a4ac70f73a9c706f2d00d725d37e7b072a43c5c19044a93a1bd
      30. INFO[0866] POST /v1.20/containers/3a49b331227e3a4ac70f73a9c706f2d00d725d37e7b072a43c5c19044a93a1bd/start
      31. antman@pluto:~$ WARN[0867] Your kernel does not support OOM notifications: There is no path for "memory" in state
      32. antman@pluto:~$ docker run --name processor -m 256m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest processor
      33. Post http:///var/run/docker.sock/v1.20/containers/create?name=processor: dial unix /var/run/docker.sock: permission denied.
      34. * Are you trying to connect to a TLS-enabled daemon without TLS?
      35. * Is your docker daemon up and running?
      36. antman@pluto:~$ sudo docker run --name processor -m 256m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest processor
      37. INFO[0911] POST /v1.20/containers/create?name=processor
      38. WARN[0911] Your kernel does not support memory limit capabilities. Limitation discarded.
      39. WARN[0911] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      40. 7bdfd66fbc3889dfbe008996a60356eaab84043c59d5d9a9e3fbfe058812db85
      41. INFO[0912] POST /v1.20/containers/7bdfd66fbc3889dfbe008996a60356eaab84043c59d5d9a9e3fbfe058812db85/start
      42. WARN[0912] Your kernel does not support OOM notifications: There is no path for "memory" in state
      43. antman@pluto:~$ sudo docker ps
      44. INFO[0919] GET /v1.20/containers/json
      45. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
      46. 7bdfd66fbc38 binux/pyspider:latest "pyspider processor" 8 seconds ago Up 7 seconds 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp processor
      47. 3a49b331227e binux/pyspider:latest "pyspider result_work" 53 seconds ago Up 52 seconds 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp result_worker
      48. 4a14acb0d99d binux/pyspider:latest "pyspider phantomjs" About a minute ago Up About a minute 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp phantomjs
      49. 3d866d983b28 rabbitmq:latest "/docker-entrypoint.s" 4 minutes ago Up 4 minutes 4369/tcp, 5672/tcp, 25672/tcp rabbitmq
      50. 71faf233cc38 mysql:latest "/entrypoint.sh mysql" 5 minutes ago Up 5 minutes 3306/tcp mysql
      51. antman@pluto:~$ sudo docker run --name fetcher -m 256m -d --link phantomjs:phantomjs --link rabbitmq:rabbitmq binux/pyspider:latest fetcher --no-xmlrpc
      52. INFO[0928] POST /v1.20/containers/create?name=fetcher
      53. WARN[0928] Your kernel does not support memory limit capabilities. Limitation discarded.
      54. WARN[0928] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      55. cf1b75d3ee431c85015352fdf051863b335863ce9e48087b36b6bd34e97d21b8
      56. INFO[0929] POST /v1.20/containers/cf1b75d3ee431c85015352fdf051863b335863ce9e48087b36b6bd34e97d21b8/start
      57. antman@pluto:~$ WARN[0930] Your kernel does not support OOM notifications: There is no path for "memory" in state
      58. antman@pluto:~$ sudo docker run --name scheduler -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest scheduler
      59. INFO[0944] POST /v1.20/containers/create?name=scheduler
      60. WARN[0944] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      61. WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      62. dc2830d9021a2ab04389d8b15cabfb3a5cdba6ac5c8df058085a7cb487753573
      63. INFO[0945] POST /v1.20/containers/dc2830d9021a2ab04389d8b15cabfb3a5cdba6ac5c8df058085a7cb487753573/start
      64. WARN[0945] Your kernel does not support OOM notifications: There is no path for "memory" in state
      65. antman@pluto:~$ sudo docker run --name webui -m 256m -d -p 5000:5000 --link mysql:mysql --link rabbitmq:rabbitmq --link scheduler:scheduler --link phantomjs:phantomjs binux/pyspider:latest webui
      66. INFO[0953] POST /v1.20/containers/create?name=webui
      67. WARN[0953] Your kernel does not support memory limit capabilities. Limitation discarded.
      68. WARN[0953] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      69. b9b6737a163a8414d458cd3c44bc0085bdba6de9fe92a19379fb692606538063
      70. INFO[0953] POST /v1.20/containers/b9b6737a163a8414d458cd3c44bc0085bdba6de9fe92a19379fb692606538063/start
      71. WARN[0954] Your kernel does not support OOM notifications: There is no path for "memory" in state
      72. antman@pluto:~$ docker ps
      73. Get http:///var/run/docker.sock/v1.20/containers/json: dial unix /var/run/docker.sock: permission denied.
      74. * Are you trying to connect to a TLS-enabled daemon without TLS?
      75. * Is your docker daemon up and running?
      76. antman@pluto:~$ sudo docker ps
      77. INFO[1028] GET /v1.20/containers/json
      78. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
      79. b9b6737a163a binux/pyspider:latest "pyspider webui" About a minute ago Up About a minute 23333/tcp, 24444/tcp, 0.0.0.0:5000->5000/tcp, 25555/tcp webui
      80. dc2830d9021a binux/pyspider:latest "pyspider scheduler" About a minute ago Up About a minute 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp scheduler
      81. cf1b75d3ee43 binux/pyspider:latest "pyspider fetcher --n" About a minute ago Up About a minute 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp fetcher
      82. 7bdfd66fbc38 binux/pyspider:latest "pyspider processor" About a minute ago Up About a minute 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp processor
      83. 3a49b331227e binux/pyspider:latest "pyspider result_work" 2 minutes ago Up 2 minutes 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp result_worker
      84. 4a14acb0d99d binux/pyspider:latest "pyspider phantomjs" 2 minutes ago Up 2 minutes 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp phantomjs
      85. 3d866d983b28 rabbitmq:latest "/docker-entrypoint.s" 6 minutes ago Up 6 minutes 4369/tcp, 5672/tcp, 25672/tcp rabbitmq
      86. 71faf233cc38 mysql:latest "/entrypoint.sh mysql" 7 minutes ago Up 7 minutes 3306/tcp mysql
      Display All
    • -->continued

      Source Code

      1. antman@pluto:~$ docker ps
      2. Get http:///var/run/docker.sock/v1.20/containers/json: dial unix /var/run/docker.sock: permission denied.
      3. * Are you trying to connect to a TLS-enabled daemon without TLS?
      4. * Is your docker daemon up and running?
      5. antman@pluto:~$ sudo docker ps
      6. INFO[0840] GET /v1.20/containers/json
      7. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
      8. 3d866d983b28 rabbitmq:latest "/docker-entrypoint.s" 3 minutes ago Up 3 minutes 4369/tcp, 5672/tcp, 25672/tcp rabbitmq
      9. 71faf233cc38 mysql:latest "/entrypoint.sh mysql" 4 minutes ago Up 4 minutes 3306/tcp mysql
      10. antman@pluto:~$ docker run --name phantomjs -d binux/pyspider:latest phantomjs
      11. Post http:///var/run/docker.sock/v1.20/containers/create?name=phantomjs: dial unix /var/run/docker.sock: permission denied.
      12. * Are you trying to connect to a TLS-enabled daemon without TLS?
      13. * Is your docker daemon up and running?
      14. antman@pluto:~$ sudo docker run --name phantomjs -d binux/pyspider:latest phantomjs
      15. INFO[0854] POST /v1.20/containers/create?name=phantomjs
      16. WARN[0854] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      17. WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      18. 4a14acb0d99d621eaa5fba9d60275eb97c2da871aa93e39f86f212c208a7325f
      19. INFO[0854] POST /v1.20/containers/4a14acb0d99d621eaa5fba9d60275eb97c2da871aa93e39f86f212c208a7325f/start
      20. WARN[0855] Your kernel does not support OOM notifications: There is no path for "memory" in state
      21. antman@pluto:~$ docker run --name result_worker -m 128m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest result_worker
      22. Post http:///var/run/docker.sock/v1.20/containers/create?name=result_worker: dial unix /var/run/docker.sock: permission denied.
      23. * Are you trying to connect to a TLS-enabled daemon without TLS?
      24. * Is your docker daemon up and running?
      25. antman@pluto:~$ sudo docker run --name result_worker -m 128m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest result_worker
      26. INFO[0866] POST /v1.20/containers/create?name=result_worker
      27. WARN[0866] Your kernel does not support memory limit capabilities. Limitation discarded.
      28. WARN[0866] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      29. 3a49b331227e3a4ac70f73a9c706f2d00d725d37e7b072a43c5c19044a93a1bd
      30. INFO[0866] POST /v1.20/containers/3a49b331227e3a4ac70f73a9c706f2d00d725d37e7b072a43c5c19044a93a1bd/start
      31. antman@pluto:~$ WARN[0867] Your kernel does not support OOM notifications: There is no path for "memory" in state
      32. antman@pluto:~$ docker run --name processor -m 256m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest processor
      33. Post http:///var/run/docker.sock/v1.20/containers/create?name=processor: dial unix /var/run/docker.sock: permission denied.
      34. * Are you trying to connect to a TLS-enabled daemon without TLS?
      35. * Is your docker daemon up and running?
      36. antman@pluto:~$ sudo docker run --name processor -m 256m -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest processor
      37. INFO[0911] POST /v1.20/containers/create?name=processor
      38. WARN[0911] Your kernel does not support memory limit capabilities. Limitation discarded.
      39. WARN[0911] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      40. 7bdfd66fbc3889dfbe008996a60356eaab84043c59d5d9a9e3fbfe058812db85
      41. INFO[0912] POST /v1.20/containers/7bdfd66fbc3889dfbe008996a60356eaab84043c59d5d9a9e3fbfe058812db85/start
      42. WARN[0912] Your kernel does not support OOM notifications: There is no path for "memory" in state
      43. antman@pluto:~$ sudo docker ps
      44. INFO[0919] GET /v1.20/containers/json
      45. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
      46. 7bdfd66fbc38 binux/pyspider:latest "pyspider processor" 8 seconds ago Up 7 seconds 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp processor
      47. 3a49b331227e binux/pyspider:latest "pyspider result_work" 53 seconds ago Up 52 seconds 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp result_worker
      48. 4a14acb0d99d binux/pyspider:latest "pyspider phantomjs" About a minute ago Up About a minute 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp phantomjs
      49. 3d866d983b28 rabbitmq:latest "/docker-entrypoint.s" 4 minutes ago Up 4 minutes 4369/tcp, 5672/tcp, 25672/tcp rabbitmq
      50. 71faf233cc38 mysql:latest "/entrypoint.sh mysql" 5 minutes ago Up 5 minutes 3306/tcp mysql
      51. antman@pluto:~$ sudo docker run --name fetcher -m 256m -d --link phantomjs:phantomjs --link rabbitmq:rabbitmq binux/pyspider:latest fetcher --no-xmlrpc
      52. INFO[0928] POST /v1.20/containers/create?name=fetcher
      53. WARN[0928] Your kernel does not support memory limit capabilities. Limitation discarded.
      54. WARN[0928] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      55. cf1b75d3ee431c85015352fdf051863b335863ce9e48087b36b6bd34e97d21b8
      56. INFO[0929] POST /v1.20/containers/cf1b75d3ee431c85015352fdf051863b335863ce9e48087b36b6bd34e97d21b8/start
      57. antman@pluto:~$ WARN[0930] Your kernel does not support OOM notifications: There is no path for "memory" in state
      58. antman@pluto:~$ sudo docker run --name scheduler -d --link mysql:mysql --link rabbitmq:rabbitmq binux/pyspider:latest scheduler
      59. INFO[0944] POST /v1.20/containers/create?name=scheduler
      60. WARN[0944] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      61. WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      62. dc2830d9021a2ab04389d8b15cabfb3a5cdba6ac5c8df058085a7cb487753573
      63. INFO[0945] POST /v1.20/containers/dc2830d9021a2ab04389d8b15cabfb3a5cdba6ac5c8df058085a7cb487753573/start
      64. WARN[0945] Your kernel does not support OOM notifications: There is no path for "memory" in state
      65. antman@pluto:~$ sudo docker run --name webui -m 256m -d -p 5000:5000 --link mysql:mysql --link rabbitmq:rabbitmq --link scheduler:scheduler --link phantomjs:phantomjs binux/pyspider:latest webui
      66. INFO[0953] POST /v1.20/containers/create?name=webui
      67. WARN[0953] Your kernel does not support memory limit capabilities. Limitation discarded.
      68. WARN[0953] Your kernel does not support memory swappiness capabilities, memory swappiness discarded.
      69. b9b6737a163a8414d458cd3c44bc0085bdba6de9fe92a19379fb692606538063
      70. INFO[0953] POST /v1.20/containers/b9b6737a163a8414d458cd3c44bc0085bdba6de9fe92a19379fb692606538063/start
      71. WARN[0954] Your kernel does not support OOM notifications: There is no path for "memory" in state
      72. antman@pluto:~$ docker ps
      73. Get http:///var/run/docker.sock/v1.20/containers/json: dial unix /var/run/docker.sock: permission denied.
      74. * Are you trying to connect to a TLS-enabled daemon without TLS?
      75. * Is your docker daemon up and running?
      76. antman@pluto:~$ sudo docker ps
      77. INFO[1028] GET /v1.20/containers/json
      78. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
      79. b9b6737a163a binux/pyspider:latest "pyspider webui" About a minute ago Up About a minute 23333/tcp, 24444/tcp, 0.0.0.0:5000->5000/tcp, 25555/tcp webui
      80. dc2830d9021a binux/pyspider:latest "pyspider scheduler" About a minute ago Up About a minute 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp scheduler
      81. cf1b75d3ee43 binux/pyspider:latest "pyspider fetcher --n" About a minute ago Up About a minute 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp fetcher
      82. 7bdfd66fbc38 binux/pyspider:latest "pyspider processor" About a minute ago Up About a minute 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp processor
      83. 3a49b331227e binux/pyspider:latest "pyspider result_work" 2 minutes ago Up 2 minutes 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp result_worker
      84. 4a14acb0d99d binux/pyspider:latest "pyspider phantomjs" 2 minutes ago Up 2 minutes 5000/tcp, 23333/tcp, 24444/tcp, 25555/tcp phantomjs
      85. 3d866d983b28 rabbitmq:latest "/docker-entrypoint.s" 6 minutes ago Up 6 minutes 4369/tcp, 5672/tcp, 25672/tcp rabbitmq
      86. 71faf233cc38 mysql:latest "/entrypoint.sh mysql" 7 minutes ago Up 7 minutes 3306/tcp mysql
      Display All
    • Well, when I did it, all my existing containers vanished, so...that's probably an issue :-P. One of the problems I'm going to run into here soon is goign to be plugin related. I'm trying to build a FreeIPA plugin to provide a first class Directory implementation to OMV. FreeIPA creates a server with LDAP, Kerberos, DNS, and other things integrated to support managing of network users, groups, hosts, as well as sudo, selinux, and host login policies, domain trusts with AD, etc. It's all wrapped up nicely in a web UI. The problem is, I *might* need to use the device mapper driver for it, but I'm not sure yet. I'll know more later. The major issue here is that when installing the plugin, I'd need to switch the docker daemon over to that driver, potentially blowing away people's containers or creating other weird behavior. I'm not sure of the best way to solve that yet.
    • ikogan wrote:

      I'm trying to build a FreeIPA plugin to provide a first class Directory implementation to OMV. FreeIPA creates a server with LDAP, Kerberos, DNS, and other things integrated to support managing of network users, groups, hosts, as well as sudo, selinux, and host login policies, domain trusts with AD, etc.


      This sounds really nice, too bad I don't have any need for such a solution at the moment :) I'll keep it in mind though...

      ikogan wrote:

      Alright, it looks like I only need devicemapper to build the image, not to run the container. Awesome.


      Great news!
    • antman2 wrote:

      This is antman as antman2. Apparently the site had a problem showing the submitted reply and when I reposted the antman account was banned.


      I tested the commands in the post you linked to and used the following settings in the GUI:

      The --name parameters are set in the corresponding input field
      The --link parameters are defined as extra params input field
      The -p (ports) are defined in the port forwarding input fields
      The --no-xmlrpc parameter is defined in the extra params input field
      The -m (memory) parameters are defined in the extra params input field

      I got the webui up and running, but I don't know if it worked since I don't know what it actually does :)
    • Really good job for this plugin ! You have done all what I don't have the time to do ! :) !!! A real gui for OMV !!! It's perfect !

      Just a little bug I've got, no way to pull an image like _/owncloud probably because of the "_" ! Finaly, just use owncloud ^^

      One last time : really good job for all OMV + plugins it's just perfect to have a complete NAS at home and also to manage a dedicated server !!!

      Thanks a lot !

      PS Is it possible to make a monthly donation to the projet ? (I don't see anything about on openmediavault.org/donate.html ) ?

      The post was edited 1 time, last by slobberbone ().