Q. 주어진 Script를 실행하는 컨테이너를 빌드하시오
fortune:20.02dockerfile의 내용debianwebpage.sh 파일을 복사fortune 애플리케이션 설치 : apt-get install fortunewebpage.sh가 실행되도록 구성webpage.sh 파일 내용#!/bin/bash
mkdir /htdocs
while :
do
/usr/games/fortune > /htdocs/index.html
sleep 10
done
fortune컨테이너 버전을21.02로 풀이했습니다
mkdir fortunecd fortunewebpage.sh 파일 생성 vim webpage.shdockerfile 파일 생성 vim dockerfile$ sudo docker build -t fortune:21.02 .$ sudo docker run -d --name fortune fortune:21.02bash : $ sudo docker exec -it fortune /bin/bash$ cat /etc/issueDebian GNU/Linux 12 \n \lcd htdocscat index.html