Prechádzať zdrojové kódy

docker-compose修改

liangzhongquan 2 rokov pred
rodič
commit
b02adb0e3e
2 zmenil súbory, kde vykonal 6 pridanie a 6 odobranie
  1. 1 1
      Makefile
  2. 5 5
      docker-compose.yml

+ 1 - 1
Makefile

@@ -9,5 +9,5 @@ AUTHOR          := $(shell git show -s --format='%an')
 all: gpu
 gpu:
 	@docker build -t registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):gpu --build-arg VERSION=gpu .
-	@docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):gpu
+	# @docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):gpu
 

+ 5 - 5
docker-compose.yml

@@ -13,8 +13,8 @@ services:
       - '18080:8080'
     volumes:
       - ./:/workspace
-    deploy:
-      resources:
-        reservations:
-          devices:
-            - capabilities: [gpu]
+    # deploy:
+    #   resources:
+    #     reservations:
+    #       devices:
+    #         - capabilities: [gpu]