ETA: This is being done on a Raspberry Pi 4 running 64-bit Raspbian using an external SSD as storage.

I am following the instructions here: https://github.com/LemmyNet/lemmy-docs/blob/4249465e9960cad97245aa03b3ad4c758ff945c7/src/en/administration/install_docker.md

Please note that I have only used docker a few times in the past and have always failed so that could be a contributing factor.

My goal for the moment is just to have the instance on localhost so I can play around with it before deciding if running my own instance is something I have the time for.

Here are the steps I have taken so far and the result:

`WARNING: The Qa variable is not set. Defaulting to a blank string. WARNING: The k variable is not set. Defaulting to a blank string. ERROR: Couldn’t connect to Docker daemon at http+docker://localhost - is it running?

If it’s at a non-standard location, specify the URL with the DOCKER_HOST environment variable. `

I imagine I’m doing a lot of things wrong. I would be extremely appreciative for any help anybody can provide.

  • animist@lemmy.oneOP
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Okay so I don’t see

    build:
      context: ../
      dockerfile: docker/Dockerfile
    

    in the docker compose file anywhere. Where should I then place

    image: dessalines/lemmy:<tag>
    

    ?

    • marsara9@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      1 year ago

      https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/docker-compose.yml

      ...
      services:
        proxy:
          ...
      
        lemmy:
          # image: dessalines/lemmy:dev
          # use this to build your local lemmy server image for development
          # run docker compose up --build
          build:
            context: ../
            dockerfile: docker/Dockerfile
            # args:
            #   RUST_RELEASE_MODE: release
          # this hostname is used in nginx reverse proxy and also for lemmy ui to connect to the backend, do not change
          hostname: lemmy
      

      Just copied this from the above URL. But just under lemmy: there’s a few comments and the reference to the build section. You’ll want to remove those lines. and just have:

      lemmy:
          image: dessalines/lemmy:0.17.3-linux-arm64
          ...
      

      You’ll need to do the same thing for lemmy-ui, but it’s build section is already commented out but the default compose is using an incorrect tag for the Pi.

      See below:

      ...
       lemmy-ui:
          image: dessalines/lemmy-ui:0.17.1
          # use this to build your local lemmy ui image for development
          # run docker compose up --build
          # assuming lemmy-ui is cloned besides lemmy directory
          # build:
          #   context: ../../lemmy-ui
          #   dockerfile: dev.dockerfile
         ...
      

      so for it, you just want to change it to:

      lemmy-ui:
          image: dessalines/lemmy-ui:0.17.3-linux-arm64
      ...