Files
tldr/pages.tr/common/docker-run.md
2022-07-28 10:03:27 -03:00

29 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# docker run
> Yeni bir Docker konteynerinde bir komut çalıştır.
> Daha fazla bilgi: <https://docs.docker.com/engine/reference/commandline/run/>.
- Yeni bir konteynerde, etiketlenmiş bir imgeden komut çalıştır:
`docker run {{imge:etiket}} {{komut}}`
- Yeni bir konteynerde arkaplanda çalışacak şekilde komut çalıştır ve ID'sini göster:
`docker run --detach {{imge}} {{komut}}`
- İnteraktif mod ve pseudo-TTY'deki bir açık-kapalı konteynerde komut çalıştır:
`docker run --rm --interactive --tty {{imge}} {{komut}}`
- Yeni bir konteynerde geçebilmiş çevresel değişkenler ile komut çalıştır:
`docker run --env '{{değişken}}={{değer}}' --env {{değişken}} {{imge}} {{komut}}`
- Yeni bir konteynerde bağlama takılı hacimlerle komut çalıştır:
`docker run --volume {{örnek/host}}:{{örnek/konteyner}} {{imge}} {{komut}}`
- Yayınlanmış portları içeren yeni bir konteynerde komut çalıştır:
`docker run --publish {{host_portu}}:{{konteyner_portu}} {{imge}} {{komut}}`