r/docker • • 1d ago

DOCKER CLI VS GUI

Which one do you guys prefer?

0 Upvotes

38 comments sorted by

9

u/Medium_Public4720 1d ago

CLI because you're not always guaranteed to have a GUI available.

-18

u/A-arora 1d ago

Huhh?? Docker does have a GUI sir, its called Docker Desktop. I feel its very user friendly but not for the pros kind of thing.

9

u/nonades 1d ago

No, the person you're replying to is saying you won't always have that as an option. 9/10 im interacting with a system with docker, it's a headless system over SSH

0

u/A-arora 1d ago

damn, thats on another level. what kind of job role is this that interacts with such stuff that sounds this cool. i mean i'm starting out and "it's a headless system over SSH" sounds so damn cool even when i've no clue what it means

1

u/nonades 1d ago

SysAdmin, DevOps Engineer, Site Reliability Engineer, dev that deploys code via a container. Hell, I have a small computer under my desk I call my server doing that.

The GUI is mostly a toy and anyone doing any real work with docker is doing things via CLI

3

u/R10t-- 1d ago

Not if you’re on a terminal based server

-2

u/A-arora 1d ago

I never knew there were levels to this😭. apologies, im a rookie

3

u/Anihillator 1d ago

Not only docker desktop is always worse if you have a linux machine available, most of docker use is on servers, that usually don't have any gui. At best you could host yourself a portainer instance.

1

u/A-arora 1d ago

hmm... Interesting. well i'm new to development and stuff, and i only have my laptop. so i dont know much about it. i think you're talking on corporate level things

2

u/Lymez18 1d ago

Not necessarily a corporate level setup.

He is talking about running a headless server that you control remotely, over ssh for example.

Portainer is a GUI docker manager.

1

u/A-arora 1d ago

Definitely gonna research over this! Thanks.

1

u/Lymez18 1d ago

Just a little heads up, portainer is more suited for enterprise grade, not that it's not good, it's just that in my opinion it has a more boring style and a lot of features you probably won't use.

 I'd first check Dockhand which has a more modern design than portainer.

1

u/Sh3llSh0cker 1d ago

get use to the stack Docker, Docker Composw, Traefik, Dockge, and portainer. i only use portainer has a front-end

1

u/A-arora 1d ago

and whats a portainer??😭😭

1

u/Sh3llSh0cker 1d ago

This is portainer, a management frontend but it’s missing a few things.

1

u/A-arora 1d ago

Damn, there's a lot to this. i was just watching a tutorial and they mentioned things like these

2

u/Sh3llSh0cker 1d ago

Docker has no Gui, The Docker Enginer is a CLI tool and is native on Linux for those who understand it. of course windows wants part in this as well so they made a shitty GUI for it, and Docker runs inside a VM in windows. I personally shake my head at those who say they know docker and i see there config and there using Docker Desktop 😓😅 there is no such thing just a shitty thing for windows users lol

2

u/A-arora 1d ago

Haha, so CLI is the way to go

1

u/Sh3llSh0cker 1d ago

This is the way.

2

u/Th3W0lf1979 1d ago

I run docker on headless Linux servers. Terminal access only, no desktop environment to run GUIs on. CLI is only possibility. Could be wrong here, but even if I had a monitor connected and installed a desktop environment, Docker Desktop still wouldn't work like it does on Windows machines.

5

u/Bloodsucker_ 1d ago

Nobody uses the GUI except to enable something in the settings. Docker is a CLI and that is what you should be using. If you're unfamiliar with CLI, that's a different story.

Familiarize yourself with the CLI. There's nothing to discuss here.

1

u/A-arora 1d ago

brew install docker😭

that good enough for cli??

1

u/pacmanlives 1d ago

I think they only time I used the GUI was for something like Scout but I switched to a different SCA tool anyways

4

u/chamgireum_ 1d ago

1

u/Sh3llSh0cker 1d ago

hell get it later haha

0

u/A-arora 1d ago

Heyy, i just wanna know views of other people, on what the community thinnks. i believe reddit and discord are the only ones who are still not in the goo of Ai and where real people talk.

2

u/balefyre 1d ago

The gui is fine if you just want to start a container and not think about much. Test driving something maybe.

If you want to understand the stack and properly administer the software , then the cli is a must.

-1

u/A-arora 1d ago

Exactly my Thoughts💭

1

u/tails142 1d ago

I went to the GUI first when starting out, confused, and I never went back.

I just wouldnt even bother looking at it, move on.

It's also not free for business related use AFAIK?

1

u/A-arora 1d ago

Agreed.

1

u/faultydesign 1d ago

cli all the way

2

u/A-arora 1d ago

Yay😋

1

u/Darxploit 1d ago

If you are on windows:
WSL v3 has container support with wslc
WSL v2 install ubuntu and there docker engine.

I never want to use gui again for containers

1

u/A-arora 1d ago

i'm sorryy, but i use mac os, so 'brew install docker' it is!

1

u/Darxploit 1d ago

you can also install lima, i did that on my macbook. I installed a Ubuntu distro and there the docker engine. Then you just need to point the DOCKER_HOST environment variable to your lima Ubuntu docker.sock. Thats the cleanest way i found so far.

2

u/ComprehensiveBerry48 1d ago

There is a GUI? I'm used to the compose files and didn't miss a GUI so far.

1

u/Fizzy_beeG 12h ago

Neither. Please stop using containers in general. It's lazy.