Docker 상용 용기 시작 명령

614 단어
nginx:
docker run -p 80:80 -it -d --name nginx -v /home/larry/Documents/jenkins_home/nginx/nginx.conf:/etc/nginx/nginx.conf:ro -v /home/larry/Documents/jenkins_home/nginx/conf.d/:/etc/nginx/conf.d nginx

jenkins:
docker run -p 8081:8080 --name jenkins --restart=always -it -d -u root -v /home/larry/Documents/jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/bin/docker -v /usr/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/ -v /etc/localtime:/etc/localtime:ro -e JAVA_OPTS=-Duser.timezone=Asia/shanghai jenkins

좋은 웹페이지 즐겨찾기