Skip to content

Commit 8bed5c5

Browse files
Bot Updating Templated Files
1 parent fa0bcd7 commit 8bed5c5

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,13 @@ It is possible to install extra packages during container start using [universal
189189
- INSTALL_PACKAGES=libfuse2|git|gdb
190190
```
191191
192-
193192
## Usage
194193
195194
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
196195
196+
>[!NOTE]
197+
>Unless a parameter is flaged as 'optional', it is *mandatory* and a value must be provided.
198+
197199
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
198200
199201
```yaml
@@ -202,6 +204,8 @@ services:
202204
mysql-workbench:
203205
image: lscr.io/linuxserver/mysql-workbench:latest
204206
container_name: mysql-workbench
207+
cap_add:
208+
- IPC_LOCK
205209
environment:
206210
- PUID=1000
207211
- PGID=1000
@@ -211,8 +215,6 @@ services:
211215
ports:
212216
- 3000:3000
213217
- 3001:3001
214-
cap_add:
215-
- IPC_LOCK
216218
restart: unless-stopped
217219
```
218220
@@ -221,13 +223,13 @@ services:
221223
```bash
222224
docker run -d \
223225
--name=mysql-workbench \
226+
--cap-add=IPC_LOCK \
224227
-e PUID=1000 \
225228
-e PGID=1000 \
226229
-e TZ=Etc/UTC \
227230
-p 3000:3000 \
228231
-p 3001:3001 \
229232
-v /path/to/config:/config \
230-
--cap-add="IPC_LOCK" \
231233
--restart unless-stopped \
232234
lscr.io/linuxserver/mysql-workbench:latest
233235
```
@@ -238,13 +240,17 @@ Containers are configured using parameters passed at runtime (such as those abov
238240

239241
| Parameter | Function |
240242
| :----: | --- |
241-
| `-p 3000` | Mysql Workbench desktop gui. |
242-
| `-p 3001` | Mysql Workbench desktop gui HTTPS. |
243+
| `-p 3000:3000` | Mysql Workbench desktop gui. |
244+
| `-p 3001:3001` | Mysql Workbench desktop gui HTTPS. |
243245
| `-e PUID=1000` | for UserID - see below for explanation |
244246
| `-e PGID=1000` | for GroupID - see below for explanation |
245247
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
246248
| `-v /config` | Users home directory in the container, stores program settings. |
247-
| `--cap-add=` | Required for keyring functionality |
249+
| `--cap-add=IPC_LOCK` | Required for keyring functionality. |
250+
251+
### Portainer notice
252+
253+
This image utilises `cap_add` or `sysctl` to work properly. This is not implemented properly in some versions of Portainer, thus this image may not work if deployed through Portainer.
248254

249255
## Environment variables from files (Docker secrets)
250256

0 commit comments

Comments
 (0)