Showing posts with label entrypoint. Show all posts
Showing posts with label entrypoint. Show all posts

Thursday, March 10, 2022

EXAMPLES: Dockerfile Copy Add Entrypoint CMD

 


DOCKERFILE COMMANDS:

Run below command to build the image:

docker build . -t <nameofimage>

To run the image in a container:

    docker run container --name c1 -dit img1

To go into the container:

    docker exec -it c1 bash

to run without container
    
    docker run -it img1

if the file name is not Dockerfile but something else such as abc then use -f:

    docker build . -f abc -t imgnodockfile

Fluentd

Open-source log data collector > why logs? - for compliance (auditing, company, business) - for security (transparency, monitoring, admin...