-
Notifications
You must be signed in to change notification settings - Fork 424
DL3006
José Lorenzo Rodríguez edited this page Feb 4, 2018
·
5 revisions
FROM debian
FROM debian:jessie
You can never rely that the latest
tags is a specific version.
https://docs.docker.com/engine/userguide/dockerimages/
Tip: You recommend you always use a specific tagged image, for example ubuntu:12.04. That way you always know exactly what variant of an image is being used.
When the image name refers to a previously defined alias:
FROM debian:jessie as build
RUN build_script
FROM build as tests
RUN test_script
FROM debian:jessie
COPY --from=build foo .