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
72c29ee5
Kaydet (Commit)
72c29ee5
authored
Haz 23, 2014
tarafından
Joffrey F
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added TLS configuration instructions in README.md
üst
116d1370
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
README.md
README.md
+41
-0
No files found.
README.md
Dosyayı görüntüle @
72c29ee5
...
...
@@ -342,3 +342,44 @@ c.start(container_id, binds={
}
})
```
Connection to daemon using HTTPS
================================
*
These instructions are docker-py specific. Please refer to
http://docs.docker.com/articles/https/ first.
*
*
Authenticate server based on public/default CA pool
```
python
client
=
docker
.
Client
(
base_url
=
'<https_url>'
,
tls
=
True
)
```
*
Authenticate server based on given CA
```
python
tls_config
=
docker
.
tls
.
TLSConfig
(
False
,
tls_verify
=
True
,
tls_ca_cert
=
'/path/to/ca.pem'
)
client
=
docker
.
Client
(
base_url
=
'<https_url>'
,
tls
=
tls_config
)
```
*
Authenticate with client certificate, do not authenticate server
based on given CA
```
python
tls_config
=
docker
.
tls
.
TLSConfig
(
True
,
tls_cert
=
'/path/to/client-cert.pem'
,
tls_key
=
'/path/to/client-key.pem'
)
client
=
docker
.
Client
(
base_url
=
'<https_url>'
,
tls
=
tls_config
)
```
*
Authenticate with client certificate, authenticate server based on given CA
```
python
tls_config
=
docker
.
tls
.
TLSConfig
(
False
,
tls_cert
=
'/path/to/client-cert.pem'
,
tls_key
=
'/path/to/client-key.pem'
,
tls_ca_cert
=
'/path/to/ca.pem'
)
client
=
docker
.
Client
(
base_url
=
'<https_url>'
,
tls
=
tls_config
)
```
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