Bind mounting the Unix socket into the DockerUI container is much more secure than exposing your docker daemon over TCP. The
--privileged flag is required for hosts using SELinux. You should still secure your DockerUI instance behind some type of auth. Directions for using Nginx auth are here.
Specify socket to connect to Docker daemon
By default DockerUI connects to the Docker daemon with
/var/run/docker.sock. For this to work you need to bind mount the unix socket into the container with
# Connect to default unix socket: $ docker run -d -p 9000:9000 \ --privileged \ -v /var/run/docker.sock:/var/run/docker.sock \ winking/dockerui
You can use the
-e flag to change this socket:
# Connect to a tcp socket: $ docker run -d \ -p 9000:9000 \ --privileged \ winking/dockerui -e http://127.0.0.1:2375
You can bind both unix socket and tcp socker:
# Expose DockerUI on :80 and bind both unix socker and tcp socket $ docker run -d \ -p 80:9000 \ --privileged \ -v /var/run/docker.sock:/var/run/docker.sock \ dockerui/dockerui -e http://127.0.0.1:2375
License - MIT
The DockerUI code is licensed under the MIT license.
Copyright (c) 2014 Michael Crosby. crosbymichael.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.