Docker for beginners and WEB UI

Nick Coghlan ncoghlan at gmail.com
Thu Mar 5 10:00:36 UTC 2015


On 4 March 2015 at 22:41, Václav Pavlín <vpavlin at redhat.com> wrote:
>
> On 4.3.2015 12:32, Petr Hracek wrote:
>>
>> Hello Env & Stack team,
>>
>>
>>
>> I have tested docker from beginners or "dummy" point of view, like me:)
>>
>>
>>
>> I've got information from [1]  ,
>>
>> where it navigates me how to create a my docker file.
>>
>> "Really" only 4 rows are needed:) Awesome.
>>
>>
>>
>> Creating of docker file for http and checking whether process starts
>>
>> I have create Dockerfile like:
>>
>> FROM fedora:21
>>
>> RUN yum install httpd -y
>>
>> CMD ["ps -ef | grep http"]
>
> I have a bit of a problem with this example - it's complete nonsense:) If
> you want really simple Dockerfile just to show that something like that
> exists, you could use
>
> FROM fedora
> CMD echo "Hello I am "$(cat /etc/os-release | grep PRETTY_NAME | sed
> "s/.*=//")
>
> And that's really the simplest thing you can get.

I like that one, since it transfers nicely to also being used as an
"atomic run" example later.

For the rest, Petr's ideas sound good to me as a starting point, and
then we can iterate from there.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the env-and-stacks mailing list