mirror of
https://github.com/docker/compose.git
synced 2026-10-20 19:02:47 +00:00
Allow non-interactive exec on ACI
If the request is for a non-interactive exec we don't attach the stdin when executing.
This commit is contained in:
parent
ffd815da64
commit
ef2d304762
8 changed files with 75 additions and 42 deletions
|
|
@ -105,6 +105,9 @@ func (s *E2eACISuite) TestACIRunSingleContainer() {
|
|||
})
|
||||
|
||||
s.Step("exec command", func() {
|
||||
output := s.NewDockerCommand("exec", testContainerName, "pwd").ExecOrDie()
|
||||
Expect(output).To(ContainSubstring("/"))
|
||||
|
||||
_, err := s.NewDockerCommand("exec", testContainerName, "echo", "fail_with_argument").Exec()
|
||||
Expect(err.Error()).To(ContainSubstring("ACI exec command does not accept arguments to the command. " +
|
||||
"Only the binary should be specified"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue