Introduction to Docker
Tim Sangster
Software Engineer @ DataCamp
$$
Attackers can exceptionally break out of a container.
$$
Additional security measures can lower this risk
$$
Becomes especially important once exposing running containers to the Internet.
Ubuntu with:
Ubuntu with:
Allowing root access to an image defeats keeping the image up-to-date and minimal.
Instead, make containers start as a user with fewer permissions:
FROM ubuntu # User is set to root by default.
RUN apt-get update
RUN apt-get install python3
USER repl # We switch the user after installing what we need for our use-case.
CMD python3 pipeline.py
Introduction to Docker