Docker Community Forums

Share and learn in the Docker community.

Build multiple images

build

(Tech687) #1

$ cat Dockerfile
from debian
workdir test
run touch x

from debian
workdir test
run touch y

from debian
workdir test
run touch z

$ docker build -t test .

$ docker run test ls
z

Because the x and y directories are not seen (only z)?