Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ak-git committed Oct 30, 2024
1 parent 2d042fd commit bc2c62b
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,42 @@ git tag 2024.11.1
docker run --rm a002k/simple-app
```

```shell
docker run -d --name simple-app --rm a002k/simple-app
```

- ```-i``` Keep STDIN open even if not attached
- ```--rm``` Remove container after stop
- ```-d``` Detach mode, Run container in background and print container ID

and follow ```-f``` logs

```shell
docker logs -f simple-app
```

to stop

```shell
docker stop simple-app
```

## Run docker image as docker-compose

```shell
docker compose run --rm simple-app
docker compose run -d --name simple-app --rm simple-app
```

and follow ```-f``` logs

```shell
docker compose logs -f simple-app
```

to stop

```shell
docker compose down
```

[![Github Action Badge](https://github.com/ak-git/SimpleApp/actions/workflows/actions.yml/badge.svg)](https://github.com/ak-git/SimpleApp/actions/workflows/actions.yml/badge.svg)
Expand Down

0 comments on commit bc2c62b

Please sign in to comment.