Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exec bin/*** no such file #730

Closed
ASchmidt84 opened this issue Jan 18, 2016 · 6 comments
Closed

exec bin/*** no such file #730

ASchmidt84 opened this issue Jan 18, 2016 · 6 comments

Comments

@ASchmidt84
Copy link

Hi,

I have a problem.

I set up a playframework project. In build.sbt I passed following things:

packageName in Docker := "mars"
version in Docker := version.value
dockerBaseImage := "ipricegroup/ubuntu-oracle-java-8"
dockerExposedPorts := Seq(9000)
dockerExposedVolumes := Seq("/opt/docker/logs")
dockerCommands += ExecCmd("RUN","chmod","+x","bin/mars")

I build it in Idea with sbt console and the command: docker:stage

I uploaded the folder opt with Dockerfile in the folder stage. On my server (Ubuntu) I have a few docker containers running. With the same build.sbt and the same way. (the name in sbt is different).

I run the container and get always:

exec: "bin/mars": stat bin/mars: no such file or directory

Where is my error?

Thanks for help

@ASchmidt84
Copy link
Author

I had the line javaOptions += "-Dconfig.file=/opt/production.conf", too

@ASchmidt84
Copy link
Author

exactly error:

FATA[0000] Error response from daemon: Cannot start container d1559ca6af4ac5eaaed94f6bf90c4f313e186f4d245627e952724bd5f969856a: [8] System error: exec: "bin/mars": stat bin/mars: no such file or directory 

@ASchmidt84
Copy link
Author

Ahh
if i run this:
docker run -v /opt/shop:/opt -p 9012:9000 --name wilde7 -d andre/mars:1.0.0

I get this error!

@ASchmidt84
Copy link
Author

And I found the solution. :/opt is wrong :)

@ghost
Copy link

ghost commented Nov 14, 2017

@IntelligyScience could you write what was wrong with :/opt ?

@koctodox
Copy link

@IntelligyScience you are good to ask question . But could you write what was wrong! as good as your question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants