Question: Will docker compose have any security issues?

Hi Docker Users,

I am new to docker. I have created docker compose file. It is creating image on “docker-compose up” command.

Why do we need to sign in to create image? Why we need to connect to git?

Does the command save the image and contents in public location?

I am worried about secutity issues. Can anyone answer with link as evidence please.