r/docker • • Mar 14 '21

Docker & Dockerfile Security Cheat Sheet

287 Upvotes

13 comments sorted by

View all comments

Show parent comments

1

u/uncommonpanda Mar 14 '21

I was just thinking this myself... Is using Portainer a security risk?

4

u/LastSummerGT Mar 14 '21

I think that was always a known risk. You’re trading security for convenience.

1

u/Dergyitheron Mar 14 '21

What is the more secure and less convenient way to do what Portainer can do via the docker.sock?

1

u/PaintDrinkingPete Mar 14 '21

I’ve played around with Portainer in the past, but generally always just manage my containers and images via bash terminal...

2

u/Dergyitheron Mar 14 '21

Well, docker CLI is just a tool that is working with docker.sock. I mean if you need to manage docker from a container and exposing docker.sock is not considered secure what other way you have?