Page 1 of 1

Docker environment

PostPosted: Jun 6th, '21, 14:13
by brm
Hi all. I am struggling to get a docker container to work. It is a gnucash container from Docker Hub.
Any ideas on how to correct this? Docker is up an running and I am trying to access the container from the local machine.

/usr/bin/docker-compose up
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.

This is the containers docker-compose file.
Code: Select all
version: "2"
services:
  gnucash:
    image: alcol/gnucash
    container_name: gnucash
    volumes:
    - "./data/:/data"
    - "./config/:/home/local/.local/share/gnucash"
    - "/tmp/.X11-unix:/tmp/.X11-unix"
    - /etc/machine-id:/etc/machine-id
    - /var/lib/dbus/machine-id:/var/lib/dbus/machine-id
    environment:
    - DISPLAY=unix$DISPLAY

Re: Docker environment

PostPosted: Jun 6th, '21, 14:33
by doktor5000
Can you show the systemctl status output for the running docker service ?

Re: Docker environment

PostPosted: Jun 6th, '21, 16:53
by morgano
If it may help, we have a new docker version in testing https://bugs.mageia.org/show_bug.cgi?id=27251

Re: Docker environment

PostPosted: Jun 8th, '21, 01:03
by brm
Thanks Morgano. Tried this suggestion, but no change in behaviour. To do this I enabled Core Testing and upgraded to the latest docker. . . v20-10? or so. Docker info is not telling me much at the moment.
Will pursue systemctl output.
=================================
$ /usr/bin/docker-compose up -d
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.

Re: Docker environment

PostPosted: Jun 8th, '21, 01:10
by brm
Latest:

+++++++++++++++++++++++++++++++++++++
Code: Select all
systemctl status docker
● docker.service - Docker Application Container Engine
     Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
     Active: active (running) since Tue 2021-06-08 07:36:55 ACST; 1h 4min ago
       Docs: http://docs.docker.com
    Process: 4266 ExecStartPre=/usr/sbin/docker-network-cleanup (code=exited, status=0/SUCCESS)
   Main PID: 4280 (dockerd)
      Tasks: 30 (limit: 14320)
     Memory: 203.3M
        CPU: 6.836s
     CGroup: /system.slice/docker.service
             ├─4280 /usr/sbin/dockerd -g /var/cache/docker -H unix://var/run/docker.sock -H tcp://127.0.0.1:2375
             └─4478 containerd --config /var/run/docker/containerd/containerd.toml --log-level info

Jun 08 07:36:54 Mageia dockerd[4280]: time="2021-06-08T07:06:54.915937794+09:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Jun 08 07:36:54 Mageia dockerd[4280]: time="2021-06-08T07:06:54.917230404+09:00" level=info msg="[graphdriver] using prior storage driver: btrfs"
Jun 08 07:36:54 Mageia dockerd[4280]: time="2021-06-08T07:06:54.953055628+09:00" level=info msg="Loading containers: start."
Jun 08 07:36:55 Mageia dockerd[4280]: time="2021-06-08T07:06:55.693867379+09:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.>
Jun 08 07:36:55 Mageia dockerd[4280]: time="2021-06-08T07:06:55.886823393+09:00" level=info msg="Loading containers: done."
Jun 08 07:36:55 Mageia dockerd[4280]: time="2021-06-08T07:06:55.948508359+09:00" level=info msg="Docker daemon" commit=library-import graphdriver(s)=btrfs version>
Jun 08 07:36:55 Mageia dockerd[4280]: time="2021-06-08T07:06:55.948601766+09:00" level=info msg="Daemon has completed initialization"
Jun 08 07:36:55 Mageia systemd[1]: Started Docker Application Container Engine.
Jun 08 07:36:55 Mageia dockerd[4280]: time="2021-06-08T07:06:55.972050861+09:00" level=info msg="API listen on var/run/docker.sock"
Jun 08 07:36:55 Mageia dockerd[4280]: time="2021-06-08T07:06:55.986269684+09:00" level=info msg="API listen on 127.0.0.1:2375"

Re: Docker environment

PostPosted: Jun 12th, '21, 01:55
by brm
I have dropped this idea for the time being. I was attracted to the idea of Gnucash being packaged and self-contained in a docker file. I like Docker. It lends itself to all sorts of things. I guess I am attracted to the "Low Hanging Fruit" that is Docker Hub. It offers dozens of applications for people to try - and use. Nextcloud and Seafile were of particular interest here. But try as I may, I could not get these working. I eventually succeeded using the built in SQlight. And that was only because of the step by step Nextcloud tutorial. Ha ! it makes you laugh. YouTube tuturials are helpful if your Pc environment Is similar to that of the video. I guess I will continue to use docker in one way or another. I love it. So on we go . . . now what is my next job?

Re: Docker environment

PostPosted: Jun 12th, '21, 16:29
by morgano
We do have Gnucash packaged, and if you want it more "contianed" you can find it on internet as Appimage. It is also available as Flatpak. Our https://wiki.mageia.org/en/Ways_to_install_programs tells how to go about for Flatpak and Appimage. (and a lot of other ways).

For Nextcloud, did you try https://wiki.mageia.org/en/Nextcloud_se ... with_NGINX ?

If you are looking for something to do, maybe you can condensate some of your knowledge into a Docker wiki page - we seem not to have one :)