Change working dir through fig.yml
Closes #144 Signed-off-by: Alexey Lebedeff <binarin@gmail.com>
This commit is contained in:
parent
2924b9997a
commit
d83bdd5164
2 changed files with 7 additions and 1 deletions
|
|
@ -301,3 +301,8 @@ class ServiceTest(DockerClientTestCase):
|
|||
service = self.create_service('web', net='host')
|
||||
container = service.start_container().inspect()
|
||||
self.assertEqual(container['HostConfig']['NetworkMode'], 'host')
|
||||
|
||||
def test_working_dir_param(self):
|
||||
service = self.create_service('container', working_dir='/working/dir/sample')
|
||||
container = service.create_container().inspect()
|
||||
self.assertEqual(container['Config']['WorkingDir'], '/working/dir/sample')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue