Simple Api for access docker from outside
1.0K
Docker UI is a web app for viewing and managing Docker images, containers, volumes, etc in a web browser.
This project is also meant to serve as a working example of how to build a full-stack web app using:
Pull the image
docker pull otothea/docker-ui
Run it
docker run -d -p 9898:9898 \
-v /var/run/docker.sock:/var/run/docker.sock \
--name docker-api \
egreen/docker-api
Run it with authentication (see environment variables)
docker run -d -p 9898:9898 \
-v /var/run/docker.sock:/var/run/docker.sock \
--name docker-ui \
-e DOCKER_UI_HTTPS=1 \
-e DOCKER_UI_USER=username \
-e DOCKER_UI_PASS=password \
-e DOCKER_UI_SECRET=supersecretsessionkey \
egreen/docker-api
Clone the repository
git clone https://github.com/otothea/docker-ui.git
Change to the repository directory
cd docker-ui
Install the production dependencies
npm install --prod
Copy the config and adjust as needed (see config options)
cp config.example.js config.js
Start the server
npm run prod
Clone the repository
git clone https://github.com/otothea/docker-ui.git
Change to the repository directory
cd docker-ui
Install the dependencies
npm install
Copy the config and adjust as needed (see config options)
cp config.example.js config.js
Start the client
npm run watch
Start the server
npm start
string - the hostname the API listens onnumber - the port the API listens onnumber - the port the debugger listens on (required if dev)boolean - force httpsboolean - trust x-forwarded-proto header (only set to true if you know you need this)string - the username to access the UIstring - the password to access the UI (required if user is set)string - the express session key (required if user is set)There are currently no tests.
Pull requests are welcome.
Content type
Image
Digest
Size
280.3 MB
Last updated
over 9 years ago
docker pull egreen/docker-api