20190327
docker
創建一個檔名叫Dockerfile
# gedit Dockerfile


創建index.html檔

# docker build -t centos:web


完成後可以看到多了一份資料

# docker run -d -p 8082:80 centos:web /usr/sbin/apachectl DFOREGROUND

開網頁測試看看

成功後的畫面會像這樣。
Last updated
Was this helpful?
docker
創建一個檔名叫Dockerfile
# gedit Dockerfile
創建index.html檔
# docker build -t centos:web
完成後可以看到多了一份資料
# docker run -d -p 8082:80 centos:web /usr/sbin/apachectl DFOREGROUND
開網頁測試看看
成功後的畫面會像這樣。
Last updated
Was this helpful?