Code: Select all
$ cat dockercompose-debian.yaml
name: test-debian
services:
debian-bash:
volumes:
- /etc/timezone:/etc/timezone:ro
environment:
- TZ=Europe/Paris
stdin_open: true
tty: true
image: debian
command: bash
< /code>
Ich habe es versucht, die Bash aus dem Debian-Bild auszuführen: < /p>
$ docker compose -f docker-compose-debian.yaml run --rm
requires at least 1 arg(s), only received 0
exit status 1
$
< /code>
Dann habe ich Folgendes ausprobiert: < /p>
$ docker compose -f docker-compose-debian.yaml run --rm test-debian
no such service: test-debian
exit status 1
$
Wie kann ich das tun?