|
4 | 4 | tool for the web. It is a lightweight alternative to setting up phpMyAdmin.
|
5 | 5 | This is a [docker](https://www.docker.io) image that eases setup.
|
6 | 6 |
|
7 |
| -## Build |
| 7 | + |
8 | 8 |
|
9 |
| -```bash |
10 |
| -$ git clone https://github.com/clue/docker-adminer.git |
11 |
| -$ cd docker-adminer |
12 |
| -$ sudo docker build -t adminer . |
13 |
| -``` |
14 |
| - |
15 |
| -### Running |
| 9 | +See also [online demo](http://adminer.sourceforge.net/adminer.php?username=). |
16 | 10 |
|
17 |
| -This container does not contain its own database, |
18 |
| -but instead allows you to connect to a running instance. |
| 11 | +## Usage |
19 | 12 |
|
20 |
| -This makes this container disposable, as it doesn't store any sensitive |
21 |
| -information at all. |
| 13 | +This docker image is available as a [trusted build on the docker index](https://index.docker.io/u/clue/adminer/), |
| 14 | +so there's no setup required. |
| 15 | +Using this image for the first time will start a download automatically. |
| 16 | +Further runs will be immediate, as the image will be cached locally. |
22 | 17 |
|
23 |
| -#### Running Adminer temporarily |
| 18 | +The recommended way to run this container looks like this: |
24 | 19 |
|
25 | 20 | ```bash
|
26 |
| -$ sudo docker run -it --rm -p 80:80 adminer |
| 21 | +$ sudo docker run -d -p 80:80 clue/adminer |
27 | 22 | ```
|
28 | 23 |
|
29 |
| -#### Running Adminer daemonized |
| 24 | +The above example exposes the Adminer webinterface on port 80, so that you can now browse to: |
30 | 25 |
|
31 |
| -```bash |
32 |
| -$ sudo docker run -d -p 80:80 adminer |
33 | 26 | ```
|
34 |
| - |
35 |
| -### Accessing your webinterface |
36 |
| - |
37 |
| -The above examples expose the Adminer webinterface on port 80, so that you can browse to: |
38 |
| - |
39 | 27 | http://localhost/
|
| 28 | +``` |
| 29 | + |
| 30 | +This is a rather common setup following docker's conventions: |
40 | 31 |
|
| 32 | +* `-d` will run a detached instance in the background |
| 33 | +* `-p {OutsidePort}:80` will bind the webserver to the given outside port |
| 34 | +* `clue/adminer` the name of this docker image |
0 commit comments