云计算课程实验
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

13 行
456 B

  1. #!/bin/bash
  2. # build the flask container
  3. docker build -t prakhar1989/foodtrucks-web .
  4. # create the network
  5. docker network create foodtrucks-net
  6. # start the ES container
  7. docker run -d --name es --net foodtrucks-net -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.3.2
  8. # start the flask app container
  9. docker run -d --net foodtrucks-net -p 5000:5000 --name foodtrucks-web prakhar1989/foodtrucks-web