Skip to content

Instantly share code, notes, and snippets.

@selcukusta
Created April 26, 2017 19:32
Show Gist options
  • Save selcukusta/f97f8554141c38fbcf575e8a51d0e41b to your computer and use it in GitHub Desktop.
Save selcukusta/f97f8554141c38fbcf575e8a51d0e41b to your computer and use it in GitHub Desktop.
--name python # container bundan sonra "python" ismiyle çağrılacak
-v C:/python-scripts:/etc/scripts # container içerisindeki /etc/scripts klasörü lokal bilgisayarımdaki C:/python-scripts klasörü ile eşlenecek. Böylece lokal bilgisayarımda bu klasörde yapılan bir değişiklik otomatik olarak container'a da yansıyacak.
-p 1905:1905 # container'ın 1905 portu ile lokal bilgisayarımın 1905 portu eşleniyor.
-it python:latest /bin/bash # bu container "python:latest" olarak indirilen image'ı kullanacak ve container shell komutları çalıştırılabilir (interaktif) olarak aktif olacak.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment