Docker environment

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Docker environment

Postby brm » Jun 6th, '21, 14:13

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
Last edited by isadora on Jun 6th, '21, 14:33, edited 1 time in total.
Reason: Please place command-output between [CODE]-tags, to improve readability, thanks ahead!!! ;)
brm
 
Posts: 37
Joined: Sep 2nd, '18, 09:45

Re: Docker environment

Postby doktor5000 » Jun 6th, '21, 14:33

Can you show the systemctl status output for the running docker service ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 16738
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Docker environment

Postby morgano » Jun 6th, '21, 16:53

If it may help, we have a new docker version in testing https://bugs.mageia.org/show_bug.cgi?id=27251
Mandriva since 2006, then Mageia since 2011 at home & work. Thinkpad T43 & T400, Dell M4400, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 796
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Docker environment

Postby brm » Jun 8th, '21, 01:03

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.
brm
 
Posts: 37
Joined: Sep 2nd, '18, 09:45

Re: Docker environment

Postby brm » Jun 8th, '21, 01:10

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"
Last edited by isadora on Jun 8th, '21, 11:29, edited 1 time in total.
Reason: Please place command-output between [CODE]-tags, to improve readability, thanks ahead!!! ;)
brm
 
Posts: 37
Joined: Sep 2nd, '18, 09:45

Re: Docker environment

Postby brm » Jun 12th, '21, 01:55

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?
brm
 
Posts: 37
Joined: Sep 2nd, '18, 09:45

Re: Docker environment

Postby morgano » Jun 12th, '21, 16:29

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 :)
Mandriva since 2006, then Mageia since 2011 at home & work. Thinkpad T43 & T400, Dell M4400, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 796
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest