Code Monkey home page Code Monkey logo

Comments (4)

anddddddy avatar anddddddy commented on September 13, 2024

文件编码不对吧
可以把run.sh重新下载一下

from my-blog.

victory460 avatar victory460 commented on September 13, 2024

@anddddddy 谢谢你!
但是在我执行sh -x run.sh之后,再执行docker-compose restart,出现了ERROR: No containers to restart。这是怎么回事哇?具体如下:


.........
........
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.135 s
[INFO] Finished at: 2018-05-20T12:28:33+08:00
[INFO] Final Memory: 32M/76M
[INFO] ------------------------------------------------------------------------
+ cd docker-extension
+ docker-compose stop
+ docker-compose rm -f
No stopped containers
+ grep none
+ awk '{print $3 }'
+ xargs docker rmi
+ docker images
"docker rmi" requires at least 1 argument.
See 'docker rmi --help'.

Usage:  docker rmi [OPTIONS] IMAGE [IMAGE...] [flags]

Remove one or more images
[root@iZuf60o71ndcv5bgniyu4mZ docker-extension]#docker-compose restart
ERROR: No containers to restart

[root@iZuf60o71ndcv5bgniyu4mZ docker-extension]# wget http://localhost:28080
--2018-05-20 12:33:07--  http://localhost:28080/
Resolving localhost (localhost)... 127.0.0.1, ::1
Connecting to localhost (localhost)|127.0.0.1|:28080... failed: Connection refused.
Connecting to localhost (localhost)|::1|:28080... failed: No route to host.

from my-blog.

ZHENFENG13 avatar ZHENFENG13 commented on September 13, 2024

你根本没有执行docker-compose up命令吧,所以也没有生成containers,没有containers肯定就不能执行restart操作啊

from my-blog.

907739769 avatar 907739769 commented on September 13, 2024

解决了吗?楼主

from my-blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.