$ docker logs discovery-service
$ mvn clean compile package
$ docker build -t gyeom/discovery-service:1.0 .
$ docker push gyeom/discovery-service
docker run -d -p 8761:8761 --network ecommerce-network \
-e "spring.cloud.config.uri=http://config-service:8888" \
--name discovery-service gyeom/discovery-service:1.0
'DevOps. > Docker' 카테고리의 다른 글
[Docker] MariaDB 도커 이미지 생성하기 (0) | 2022.01.29 |
---|---|
[Docker] ApiGateway Service 도커 이미지 생성하기 (0) | 2022.01.29 |
[Docker] Config Server 도커 이미지 생성하기 (0) | 2022.01.28 |
[Docker] docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:4369: bind: address already in use. (0) | 2022.01.28 |
[Docker] RabbitMQ 컨테이너 구동하기 (0) | 2022.01.28 |