Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 391 Bytes

SOLUTION.MD

File metadata and controls

28 lines (20 loc) · 391 Bytes
# vim  /var/work/14/Dockerfile


FROM ubuntu:20.04
RUN apt-get update
RUN apt-get -y install curl
RUN groupadd myuser
RUN useradd  -g myuser  myuser
USER myuser
CMD ["sh", "-c", "while true ; do  id ;  sleep 1  ;done"]

podman build . -t cks:14


podman  run -d --name  cks-14   cks:14
sleep 2
podman logs cks-14 | grep myuser

podman stop cks-14
podman rm  cks-14