Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a9fa96

Browse files
committed
I am only seeing the values I set
Docker-DCO-1.1-Signed-off-by: Dan Walsh <[email protected]> (github: rhatdan)
1 parent 17abfc3 commit 4a9fa96

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

integration-cli/docker_cli_commit_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ func TestCommitChange(t *testing.T) {
214214
cmd = exec.Command(dockerBinary, "commit",
215215
"--change", "EXPOSE 8080",
216216
"--change", "ENV DEBUG true",
217+
"--change", "ENV test 1",
217218
"test", "test-commit")
218219
imageId, _, err := runCommandWithOutput(cmd)
219220
if err != nil {
@@ -224,7 +225,7 @@ func TestCommitChange(t *testing.T) {
224225

225226
expected := map[string]string{
226227
"Config.ExposedPorts": "map[8080/tcp:map[]]",
227-
"Config.Env": "[DEBUG=true PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin]",
228+
"Config.Env": "[DEBUG=true test=1]",
228229
}
229230

230231
for conf, value := range expected {

0 commit comments

Comments
 (0)