• cows_are_underrated
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    6 months ago

    I use EndeavourOS, but had the same problem on Arch.

    Hardware wise I have an 75800x, a RX 6700XT and 32GB 3200mhz Ram.

    The weird thing is, that some time ago I was actually able to use docker, but now I’m not.

    • Pyrosis@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 months ago

      That doesn’t make any sense to me. It can be installed directly from pacman. It may be something silly like adding docker to your user group. Have you done something like below for docker?

      1. Update the package index:

      sudo pacman -Syu

      1. Install required dependencies:

      sudo pacman -S docker

      1. Enable and start the Docker service:
      sudo systemctl enable docker.service
      sudo systemctl start docker.service
      
      1. Add your user to the docker group to run Docker commands without sudo:

      sudo usermod -aG docker $USER

      1. Log out and log back in for the group changes to take effect.

        Verify that Docker CE is installed correctly by running:

      docker --version

      If you get the above working docker compose is just

      sudo pacman -S docker-compose

      • cows_are_underrated
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 months ago

        sudo pacman -S docker-compose

        I did all the steps you mentioned and now it works(at least if use sudo to run the commands).

        • Pyrosis@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 months ago

          I thought it would. If it still requires sudo to run it is probably just docker wanting your user account added to the docker group. If the “docker” group doesn’t exist you can safely create it.

          You will likely need to log out and log back in for the system to recognize the new group permissions.

      • cows_are_underrated
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 months ago

        I didnt start docker and didn’t add it to my user group. Maybe this will fix it.