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
87ee18aa
Kaydet (Commit)
87ee18aa
authored
May 02, 2019
tarafından
Joffrey F
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change use_config_proxy default value to True to match CLI behavior
Signed-off-by:
Joffrey F
<
joffrey@docker.com
>
üst
836194c6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
14 deletions
+16
-14
build.py
docker/api/build.py
+1
-1
container.py
docker/api/container.py
+8
-6
api_exec_test.py
tests/integration/api_exec_test.py
+0
-1
models_containers_test.py
tests/integration/models_containers_test.py
+7
-6
No files found.
docker/api/build.py
Dosyayı görüntüle @
87ee18aa
...
...
@@ -20,7 +20,7 @@ class BuildApiMixin(object):
decode
=
False
,
buildargs
=
None
,
gzip
=
False
,
shmsize
=
None
,
labels
=
None
,
cache_from
=
None
,
target
=
None
,
network_mode
=
None
,
squash
=
None
,
extra_hosts
=
None
,
platform
=
None
,
isolation
=
None
,
use_config_proxy
=
Fals
e
):
use_config_proxy
=
Tru
e
):
"""
Similar to the ``docker build`` command. Either ``path`` or ``fileobj``
needs to be set. ``path`` can be a local path (to a directory
...
...
docker/api/container.py
Dosyayı görüntüle @
87ee18aa
import
six
from
datetime
import
datetime
import
six
from
..
import
errors
from
..
import
utils
from
..constants
import
DEFAULT_DATA_CHUNK_SIZE
from
..types
import
(
CancellableStream
,
ContainerConfig
,
EndpointConfig
,
HostConfig
,
NetworkingConfig
)
from
..types
import
CancellableStream
from
..types
import
ContainerConfig
from
..types
import
EndpointConfig
from
..types
import
HostConfig
from
..types
import
NetworkingConfig
class
ContainerApiMixin
(
object
):
...
...
@@ -222,7 +224,7 @@ class ContainerApiMixin(object):
mac_address
=
None
,
labels
=
None
,
stop_signal
=
None
,
networking_config
=
None
,
healthcheck
=
None
,
stop_timeout
=
None
,
runtime
=
None
,
use_config_proxy
=
Fals
e
):
use_config_proxy
=
Tru
e
):
"""
Creates a container. Parameters are similar to those for the ``docker
run`` command except it doesn't support the attach options (``-a``).
...
...
tests/integration/api_exec_test.py
Dosyayı görüntüle @
87ee18aa
...
...
@@ -17,7 +17,6 @@ class ExecTest(BaseAPIIntegrationTest):
container
=
self
.
client
.
create_container
(
BUSYBOX
,
'cat'
,
detach
=
True
,
stdin_open
=
True
,
use_config_proxy
=
True
,
)
self
.
client
.
start
(
container
)
self
.
tmp_containers
.
append
(
container
)
...
...
tests/integration/models_containers_test.py
Dosyayı görüntüle @
87ee18aa
...
...
@@ -2,10 +2,13 @@ import os
import
tempfile
import
threading
import
docker
import
pytest
from
.base
import
BaseIntegrationTest
,
TEST_API_VERSION
from
..helpers
import
random_name
,
requires_api_version
import
docker
from
..helpers
import
random_name
from
..helpers
import
requires_api_version
from
.base
import
BaseIntegrationTest
from
.base
import
TEST_API_VERSION
class
ContainerCollectionTest
(
BaseIntegrationTest
):
...
...
@@ -174,9 +177,7 @@ class ContainerCollectionTest(BaseIntegrationTest):
ftp
=
'sakuya.jp:4967'
)
out
=
client
.
containers
.
run
(
'alpine'
,
'sh -c "env"'
,
use_config_proxy
=
True
)
out
=
client
.
containers
.
run
(
'alpine'
,
'sh -c "env"'
)
assert
b
'FTP_PROXY=sakuya.jp:4967
\n
'
in
out
assert
b
'ftp_proxy=sakuya.jp:4967
\n
'
in
out
...
...
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