Explorar o código

docker-compose修改

liangzhongquan %!s(int64=2) %!d(string=hai) anos
pai
achega
b02adb0e3e
Modificáronse 2 ficheiros con 6 adicións e 6 borrados
  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]