MCPcopy Create free account
hub / github.com/docker/docker-py / test_build_shmsize

Method test_build_shmsize

tests/integration/api_build_test.py:170–187  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

168
169 @requires_api_version('1.22')
170 def test_build_shmsize(self):
171 script = io.BytesIO('\n'.join([
172 'FROM scratch',
173 'CMD sh -c "echo \'Hello, World!\'"',
174 ]).encode('ascii'))
175
176 tag = 'shmsize'
177 shmsize = 134217728
178
179 stream = self.client.build(
180 fileobj=script, tag=tag, shmsize=shmsize
181 )
182 self.tmp_imgs.append(tag)
183 for _chunk in stream:
184 pass
185
186 # There is currently no way to get the shmsize
187 # that was used to build the image
188
189 @requires_api_version('1.24')
190 def test_build_isolation(self):

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected