Coder Social home page Coder Social logo

Comments (11)

tifriis208 avatar tifriis208 commented on June 15, 2024 1

I just test the new playbook (v1.2.0) on a fresh install on a raspberry pi4 with ubuntu 22.04 64 bit and no more issue with docker, thanks !

from lemmy-ansible.

tifriis208 avatar tifriis208 commented on June 15, 2024

I try to install ansible-galaxy collection install community.docker but nothing change

from lemmy-ansible.

dessalines avatar dessalines commented on June 15, 2024

I've never tested this playbook on arm, so you might have to install docker manually on that machine, then skip the docker install steps in the playbook.

from lemmy-ansible.

tifriis208 avatar tifriis208 commented on June 15, 2024

Thanks for your return. Indeed, the playbook only work for x86_64:

- name: Install or upgrade docker-compose
  get_url: 
    url : "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-Linux-x86_64"

As raspberry pi is officialy supported in the documentation (Supports arm64 / Raspberry Pi), would you accept a pull request to modify this playbook according to official docker documentation?

Thanks

from lemmy-ansible.

tifriis208 avatar tifriis208 commented on June 15, 2024

I think this Pull Request should also solve this issue : #62

from lemmy-ansible.

dessalines avatar dessalines commented on June 15, 2024

Sure.

#62 didn't work when I used a fresh ubuntu install, and no docker installation recommends you use the docker from the ubuntu repos.

from lemmy-ansible.

jonaharagon avatar jonaharagon commented on June 15, 2024

I am also seeing this same issue on a new Ubuntu 22.04 server that is not arm64, just regular x86_64.

from lemmy-ansible.

dessalines avatar dessalines commented on June 15, 2024

Hrm... I'm wondering if the script successfully installed docker on that machine. What does sudo docker info say there?

from lemmy-ansible.

jonaharagon avatar jonaharagon commented on June 15, 2024

Can't check right now, but Docker was installed and docker-compose was correctly located in /usr/local/bin.

All I had to do was run pip install docker-compose manually as Ansible suggested to get this working. Not sure why the compose install didn't work since it was downloaded?

from lemmy-ansible.

dessalines avatar dessalines commented on June 15, 2024

My best guess is that it couldn't complete, because you already had docker installed, through your system repos, and not via the official docker install method.

from lemmy-ansible.

jonaharagon avatar jonaharagon commented on June 15, 2024

Probably not, Hetzner Cloud images don't come with Docker installed. I think your process for installing docker-compose is outdated, what it looks like is Ansible is expecting to use docker-compose 2.x on lemmy.yml#L167 (which gets installed to /usr/libexec/docker/cli-plugins/) and you're installing the old 1.x version to /usr/local/bin instead.

# docker info Client: Docker Engine - Community Version: 24.0.2 Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.10.5 Path: /usr/libexec/docker/cli-plugins/docker-buildx compose: Docker Compose (Docker Inc.) Version: v2.18.1 Path: /usr/libexec/docker/cli-plugins/docker-compose

Server:
Containers: 5
Running: 5
Paused: 0
Stopped: 0
Images: 5
Server Version: 24.0.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8
runc version: v1.1.7-0-g860f061
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 5.15.0-71-generic
Operating System: Ubuntu 22.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.883GiB
Name: lemmy
ID: 7237f867-6d81-4a64-b219-e828d36a5018
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

from lemmy-ansible.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.