Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
docker-py
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
docker-py
Commits
3c48d2d7
Kaydet (Commit)
3c48d2d7
authored
Kas 14, 2014
tarafından
Joffrey F
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge branch 'vladfr-365-document-boot2docker'
üst
00e3ff95
bf077ace
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
6 deletions
+29
-6
api.md
docs/api.md
+2
-2
boot2docker.md
docs/boot2docker.md
+23
-0
contributing.md
docs/contributing.md
+0
-0
index.md
docs/index.md
+1
-2
port-bindings.md
docs/port-bindings.md
+0
-0
tls.md
docs/tls.md
+0
-0
volumes.md
docs/volumes.md
+2
-2
mkdocs.yml
mkdocs.yml
+1
-0
No files found.
docs/api.md
Dosyayı görüntüle @
3c48d2d7
...
...
@@ -14,9 +14,9 @@ c = Client(base_url='unix://var/run/docker.sock')
is hosted.
*
version (str): The version of the API the client will use
*
timeout (int): The HTTP request timeout, in seconds.
*
tls (bool or
[
TLSConfig
](
tls.md#TLSConfig
)
): Equivalent CLI options:
`docker --tls ...`
*
tls (bool or
[
TLSConfig
](
tls.md#TLSConfig
)
): Equivalent CLI options:
`docker --tls ...`
****
## attach
...
...
docs/boot2docker.md
0 → 100644
Dosyayı görüntüle @
3c48d2d7
# Using with Boot2docker
For usage with boot2docker, there is a helper function in the utils package named
`kwargs_from_env`
, it will pass any environment variables from Boot2docker to the Client.
First run boot2docker in your shell:
```
bash
$
$(
boot2docker shellinit
)
Writing /Users/you/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/you/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/you/.boot2docker/certs/boot2docker-vm/key.pem
export
DOCKER_HOST
=
tcp://192.168.59.103:2376
export
DOCKER_CERT_PATH
=
/Users/you/.boot2docker/certs/boot2docker-vm
export
DOCKER_TLS_VERIFY
=
1
```
You can then instantiate
`docker.Client`
like this:
```
python
from
docker.client
import
Client
from
docker.utils
import
kwargs_from_env
client
=
Client
(
**
kwargs_from_env
())
print
client
.
version
()
```
docs/contributing.md
Dosyayı görüntüle @
3c48d2d7
docs/index.md
Dosyayı görüntüle @
3c48d2d7
...
...
@@ -12,5 +12,4 @@ Our latest stable is always available on PyPi.
Full documentation is available in the
`/docs/`
directory.
## License
Docker is licensed under the Apache License, Version 2.0. See LICENSE for full
license text
Docker is licensed under the Apache License, Version 2.0. See LICENSE for full license text
docs/port-bindings.md
Dosyayı görüntüle @
3c48d2d7
docs/tls.md
Dosyayı görüntüle @
3c48d2d7
docs/volumes.md
Dosyayı görüntüle @
3c48d2d7
# Using volumes
Volume declaration is done in two parts. First, you have to provide
a list of
mountpoints to the
`Client().create_container()`
method.
Volume declaration is done in two parts. First, you have to provide
a list of
mountpoints to the
`Client().create_container()`
method.
```
python
c
.
create_container
(
'busybox'
,
'ls'
,
volumes
=
[
'/mnt/vol1'
,
'/mnt/vol2'
])
...
...
mkdocs.yml
Dosyayı görüntüle @
3c48d2d7
...
...
@@ -11,5 +11,6 @@ pages:
-
[
volumes.md
,
Using Volumes
]
-
[
tls.md
,
Using TLS
]
-
[
host-devices.md
,
Host devices
]
-
[
boot2docker.md
,
Using with boot2docker
]
-
[
change_log.md
,
Change Log
]
-
[
contributing.md
,
Contributing
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment