It is executed but in it's own shell since you use the shell form not the
exec form.

See
https://www.ctl.io/developers/blog/post/dockerfile-entrypoint-vs-cmd/

On Oct 20, 2017 23:09, "Raghava Karthik" <[email protected]> wrote:

> I can see the command " /bin/sh -c source /etc/environments" in docker
>> inspect , but when i run the container the environment variables cannot be
>> found to be used.
>>
>
> Although for now it works with  "ENTRYPOINT  source /etc/environment &&
> /usr/local/tomcat/bin/catalina.sh start && /bin/bash". but i cant figure
> out why CMD is not executed.
>
> Thanks,
> Karthik
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/d7ada9e1-7fa8-42ad-acd4-1c897e6222fc%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/d7ada9e1-7fa8-42ad-acd4-1c897e6222fc%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt9fhe4sPbixF03HLAh_2o6gPR%3DDsJk%2BiSWDiT_CoXhNOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to