mirror of
https://github.com/moby/moby.git
synced 2025-07-30 18:23:29 +03:00
Merge pull request #19155 from coolljt0725/create_cwd_on_create
Create the working directory on container creation
This commit is contained in:
@ -415,3 +415,11 @@ func (s *DockerSuite) TestCreateStopSignal(c *check.C) {
|
||||
c.Assert(res, checker.Contains, "9")
|
||||
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestCreateWithWorkdir(c *check.C) {
|
||||
testRequires(c, DaemonIsLinux)
|
||||
name := "foo"
|
||||
dir := "/home/foo/bar"
|
||||
dockerCmd(c, "create", "--name", name, "-w", dir, "busybox")
|
||||
dockerCmd(c, "cp", fmt.Sprintf("%s:%s", name, dir), "/tmp")
|
||||
}
|
||||
|
Reference in New Issue
Block a user