Open alexppg opened 7 years ago
@alexppg
If we decide to provide a default command value, it seems like we should probably use the value found on the base image, assuming there is one.
Oh sure, that would make even more sense.
@alexppg
By the way, thank you for pointing this out, and for taking the time to open an issue. We appreciate the feedback.
We'll put this on the list of possibilities after 1.0.0. Also, the container working group meets on IRC in the #ansible-container channel every Monday at 12:00 PM eastern. Please consider joining us, and help shape the future direction of the project.
No problem, that's the less I could do for your awesome job.
I'll try to pass there, but I do not have that many knowledge to contribute enough.
ISSUE TYPE
container.yml
OS / ENVIRONMENT
SUMMARY
When building an image without a command section, there's no problem. But when trying to start the image, it gives an error.
STEPS TO REPRODUCE
Use the above container.yml (changing the role to whaterver you want), build the image and then execute it with either docker run $image or ansible-container run. It will return:
EXPECTED RESULTS
It may be a sane default to assume that when a command is not declared, it should point to /bin/bash.
ACTUAL RESULTS
The ones said before.