You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash
let i=0
while true
do
let i=i+1
echo $i:hello-docker
sleep 5
done
# nano Dockerfile
FROM ubuntu:latest
RUN apt-get update; apt-get install -y inetutils-ping
COPY hello.sh .
RUN chmod u+x hello.sh
CMD ["/hello.sh"]
Schritt 4:
cd ../
# wichtig, im docker-compose - Ordner seiend
#pwd
#~/bautest
docker compose up -d
# wird image gebaut und container gestartet
# Bei Veränderung vom Dockerfile, muss man den Parameter --build mitangeben
docker compose up -d --build