반응형
빌드 및 실행 방법
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/hulint/docker.git | |
docker build ./nginx_tomcat -f ./nginx_tomcat/Dockerfile -t nginx_tomcat:0.1 | |
docker run -p 80:80 -d tomcat_nginx:0.1 | |
curl -v http://localhost:80 | |
> | |
* About to connect() to localhost port 80 (#0) | |
* Trying ::1... | |
* Connected to localhost (::1) port 80 (#0) | |
> GET / HTTP/1.1 | |
> User-Agent: curl/7.29.0 | |
> Host: localhost | |
> Accept: */* | |
> | |
< HTTP/1.1 200 | |
< Server: nginx/1.12.2 | |
< Date: Thu, 15 Mar 2018 07:24:05 GMT | |
< Content-Type: text/html;charset=UTF-8 | |
< Content-Length: 109 | |
< Connection: keep-alive | |
< Set-Cookie: JSESSIONID=35831731B502DD714218437AB0F5C49E; Path=/; HttpOnly | |
< X-UA-Compatible: IE=edge | |
< | |
<html> | |
<head> | |
<title>hello!!!!</title> | |
</head> | |
<body> | |
<h2>welcome hello world</h2> | |
</body> | |
</html> |
반응형
'linux > docker' 카테고리의 다른 글
docker tar로 만들기, tar import 하기 (0) | 2020.09.16 |
---|---|
Docker arg와 env사용 방법 (0) | 2020.09.16 |
docker bridge 네트워크에서 인터넷이 안될때 (1) | 2018.03.13 |
centos 6.5 docker 설치해보기 (0) | 2018.03.06 |
docker-compose mariadb, redis (0) | 2018.03.06 |