Skip to content

Commit

Permalink
Remove obsolete version property from Docker Compose examples (#446)
Browse files Browse the repository at this point in the history
The version property was used by Docker Compose CLI V1 which has been EOL since mid 2023.

If you use it with Docker Compose CLI V2 the following warnings are logged:

> the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion

See: https://docs.docker.com/reference/compose-file/version-and-name/#version-top-level-element-obsolete

Signed-off-by: Wouter Born <[email protected]>
  • Loading branch information
wborn authored Nov 10, 2024
1 parent e9d4d11 commit 4385379
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ docker run \
Create the following `docker-compose.yml` for use of local directories and start the container with `docker compose up -d`

```yaml
version: '2.2'

services:
openhab:
image: "openhab/openhab:4.2.2"
Expand All @@ -164,8 +162,6 @@ services:
Create the following `docker-compose.yml` for use of Docker volumes and start the container with `docker compose up -d`

```yml
version: '2.2'
services:
openhab:
image: "openhab/openhab:4.2.2"
Expand Down Expand Up @@ -199,8 +195,6 @@ This allows for using the *Amazon Dash Button Binding* in the Docker container.
Create the following `docker-compose.yml` and start the container with `docker compose up -d`

```yaml
version: '2.2'
services:
openhab:
container_name: openhab
Expand All @@ -224,8 +218,6 @@ The `host` networking driver only works on Linux hosts, and is not supported by
On Windows and macOS ports should be exposed by adding port options to commands (`-p 8080`) or by adding a ports section to `docker-compose.yml`.

```yaml
version: '2.2'
services:
openhab:
image: "openhab/openhab:4.2.2"
Expand Down

0 comments on commit 4385379

Please sign in to comment.