5
b2plane
1y

Setting up docker is so fucking complicated. Theres like a trillion combinations of something going wrong. I have never been able to setup docker right on the first try. Theres always some fucking compilation failure or corrupted images and containers. The thought of using docker frightens me for this reason. But still makes me want to use it because once it's set up it makes dev life 200x easier

Comments
  • 1
    What, really? Are you on Windows or something? I find it incredibly easy to use and can probably configure a server with it in less that 20 min
  • 1
    You must be on Windows right? Mac is completely doable and linux is 2 commands
  • 0
    depends what you are doing, but i'll agree for how its marketed talked about ive never had a docker file or config that was "just 5 lines" or whatever the hell examples they always show
  • 1
    I've never understood how to write my own Dockerfile. I studied it for 15 mins and gave up on it.
  • 2
    Your company is using Docker wrong. Docker itself is easy. It sounds like there’s no good CI/CD system at your company to test images are valid before publishing to the image registry you’re using.
  • 0
    apt-get install docker
  • 1
    See the trick

    `docker exec -it ubuntu:22.04 bash`
    You LL get inside of running container in interactive console. From there u can quickly test in real time what is supposed to be installed.

    In similar way you can built image at any time of problem, by commenting out problematic commands and running
    `docker build --tag test .`
    And entering again it's console via same command as above except replacing Ubuntu:22.04 to test.
    For alpine images, enter via `sh` instead of `bash`

    In general recommendation to read `Docker Deep Dive` book in addition
  • 0
  • 0
    @ScriptCoded im using imac
  • 1
    @b2plane unfortunately Docker on Mac sucks even more than Windows (non-WSL install) because it uses VirtualBox and is slow as f*ck.

    But FWIW I struggled grasping docker for a year or so (in a non-devops position) and only after writing 4-5 images I started getting the hang of it. Using Linux as desktop helped a lot, especially for becoming more familiar with OS-level stuff.
  • 0
    I'm on mac and it's a nightmare. It used to be easy. Downloaded it again today and can't make it do shit. Hate it. When you click on a button that is supposed to start the container and it just quits after a milisecond, and that's considered proper behavior, what's the point? How am I supposed to develop in something that only runs for a milisecond? It's junk. Hate it.
Add Comment