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

Creating a new image from scratch without any entrypoint #37503

Closed
ankit-agrawal-berlin opened this issue Jul 19, 2018 · 1 comment
Closed

Creating a new image from scratch without any entrypoint #37503

ankit-agrawal-berlin opened this issue Jul 19, 2018 · 1 comment

Comments

@ankit-agrawal-berlin
Copy link

Hi,
I am trying to create a image which just have lot of config files in it. I thought I will create a image from scratch and then will copy all the files to a directory. While starting the container I will use mount to mount a volume and then that volume can be used by all different containers to get the config.

Here is my Dockerfile

FROM scratch

ADD configurations /configurations

And here is the docker run command
docker run --mount source=config,target=/configurations $image

When I am trying to start the image I am getting
Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: "": executable file not found in $PATH".

Is it possible to have a container wihtout any entrypoint command?
~

@cpuguy83
Copy link
Member

You could certainly create one but you couldn't start it, which would make it useless.
There is no container if there is no command to run.

Closing since this is not an issue.

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

No branches or pull requests

3 participants