Docker Community Forums

Share and learn in the Docker community.

STACK DEPLOY Error response from daemon: rpc error: code = 3 desc = ContainerSpec: image reference must be provided

build

(Ralph Kincade) #1

I am using this Docker file

FROM briddyes/weblogic:1.0

COPY HelloWorld.java /u01/oracle

RUN javac HelloWorld.java

ENTRYPOINT [“java”, “HelloWorld”]

I can run this with docker build and it will build it fine

but when I use this docker-compose yaml

version: “3.1”

services:
weblogic_svc:
build: .
networks:
- weblogic_net
ports:
- “7001:7001”

networks:
weblogic_net:

I would get this error

[root@docker-oct-2017-node-01 dockercoins]# docker stack deploy --compose-file docker-compose.yml testws
Ignoring unsupported options: build

Creating service testws_weblogic_svc
Error response from daemon: rpc error: code = 3 desc = ContainerSpec: image reference must be provided

any help would be appriciated

thanks !!!


(Think) #2

it cannot build the image on the fly, you need to have a prebuild image already.