Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

docker beyond wiki fails here

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
18 posts • Page 1 of 1
Author
Message
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

docker beyond wiki fails here

  • Quote

Post by CaptainBlood » Sun May 26, 2024 1:39 pm

Docker noob here.

Wiki achieved fine.

But trying pgadmin4 official docker image fails.

IIRC app should be accessible through http://localhost:80

Code: Select all

EDIT: sysctl net.ipv4.ip_forward=1
is here too.

Connection is rejected.

telnet detects something is there.

No idea how to investigate...

Any simpler docker image I could use to test my docker install?

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2182
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun May 26, 2024 2:04 pm

Beside unreachable, is there any other error?

Does the container actually running?

The simple one could be

Code: Select all

docker run -it busybox
You don't need to manually change forwarding, docker will do that for you.
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun May 26, 2024 2:42 pm

Container is gone after ~ 2 mn.

Short duration may indicate init issue?

Thks 4 ur attention,interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun May 26, 2024 2:45 pm

pingtoo wrote:

Code: Select all

docker run -it busybox
runs fine too, like with the wiki test.

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2182
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun May 26, 2024 2:49 pm

CaptainBlood wrote:Container is gone after ~ 2 mn.

Short duration may indicate init issue?

Thks 4 ur attention,interest & support.
If you start your container without the '-rm' option then, there should be some log for the container. can you try

Code: Select all

docker logs <container name>
to see if anything were register?
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun May 26, 2024 3:08 pm

Code: Select all

>>> Emerging (1 of 1) app-containers/docker-24.0.5-r1::gentoo
 * docker-24.0.5.tar.gz BLAKE2B SHA512 size ;-) ...                      [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     6.9.2-gentoo-docker
 * Checking for suitable kernel configuration options ...
 *   CONFIG_LEGACY_VSYSCALL_NONE enabled: 		Containers with <=glibc-2.13 will not work
 *   CONFIG_CGROUP_HUGETLB:	 is not set when it should be.           [ !! ]
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
CGROUP_HUGETLB can't be activated here. Wiki says optional.

Maybe I should try default kernel .config?

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun May 26, 2024 3:13 pm

Code: Select all

docker logs 6d31a3a915ea3fa75ece45ed393dc73c44267fdf3f9820cb75ae02041dcd37ff
NOTE: Configuring authentication for SERVER mode.

pgAdmin 4 - Application Initialisation
======================================

postfix/postlog: starting the Postfix mail system
[2024-05-26 17:11:55 +0000] [1] [INFO] Starting gunicorn 20.1.0
[2024-05-26 17:11:55 +0000] [1] [ERROR] Retrying in 1 second.
[2024-05-26 17:11:56 +0000] [1] [ERROR] Retrying in 1 second.
[2024-05-26 17:11:57 +0000] [1] [ERROR] Retrying in 1 second.
[2024-05-26 17:11:58 +0000] [1] [ERROR] Retrying in 1 second.
[2024-05-26 17:11:59 +0000] [1] [ERROR] Retrying in 1 second.
[2024-05-26 17:12:00 +0000] [1] [ERROR] Can't connect to ('::', 80)
Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2182
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun May 26, 2024 3:28 pm

CaptainBlood wrote:

Code: Select all

docker logs 6d31a3a915ea3fa75ece45ed393dc73c44267fdf3f9820cb75ae02041dcd37ff
NOTE: Configuring authentication for SERVER mode.

pgAdmin 4 - Application Initialisation
======================================

postfix/postlog: starting the Postfix mail system
[2024-05-26 17:11:55 +0000] [1] [INFO] Starting gunicorn 20.1.0
[2024-05-26 17:11:55 +0000] [1] [ERROR] Retrying in 1 second.
[2024-05-26 17:11:56 +0000] [1] [ERROR] Retrying in 1 second.
[2024-05-26 17:11:57 +0000] [1] [ERROR] Retrying in 1 second.
[2024-05-26 17:11:58 +0000] [1] [ERROR] Retrying in 1 second.
[2024-05-26 17:11:59 +0000] [1] [ERROR] Retrying in 1 second.
[2024-05-26 17:12:00 +0000] [1] [ERROR] Can't connect to ('::', 80)
Thks 4 ur attention, interest & support.
trying pgadmin4 official docker image
, which image? A image exist on docker hub does not make if official, anybody can publish images into docker hub.

Can you share the command used for start this container? or if you want you can remove this container, but start a new container. but share the command use to start new container.

It is unlikely your kernel need to changes in order to run docker, however I don't know if there something required for run pgadmin4. have you find anything defined by pgadmin4 developler?
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun May 26, 2024 3:46 pm

Code: Select all

 docker run -p 80:80     -e 'PGADMIN_DEFAULT_EMAIL=user@domain.com'     -e 'PGADMIN_DEFAULT_PASSWORD=SuperSecret'     -d dpage/pgadmin4
Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun May 26, 2024 3:52 pm

Code: Select all

 docker run   -e 'PGADMIN_DEFAULT_EMAIL=user@domain.com'     -e 'PGADMIN_DEFAULT_PASSWORD=SuperSecret'     -d dpage/pgadmin4
without any port fails the same.

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun May 26, 2024 4:19 pm

Code: Select all

eixi app-containers/docker
[I] app-containers/docker
     Available versions:  24.0.5-r1^sti ~24.0.6^sti ~24.0.7-r1^sti ~25.0.1^sti ~25.0.4^sti ~26.1.0-r1^sti {apparmor btrfs +container-init device-mapper overlay seccomp selinux systemd}
     Installed versions:  24.0.5-r1^sti(19:59:09 26/05/2024)(container-init -apparmor -btrfs -device-mapper -overlay -seccomp -selinux -systemd)
Stable here.

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun May 26, 2024 5:07 pm

[quote="CaptainBlood"]

Code: Select all

[2024-05-26 17:12:00 +0000] [1] [ERROR] Can't connect to ('::', 80)
/quote]

:: ... Could that be IP6 thingie?

net-vpn/riseup-vpn has the same issue, failed to work if not IP4+IP6.

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2182
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun May 26, 2024 5:45 pm

CaptainBlood wrote:

Code: Select all

 docker run   -e 'PGADMIN_DEFAULT_EMAIL=user@domain.com'     -e 'PGADMIN_DEFAULT_PASSWORD=SuperSecret'     -d dpage/pgadmin4
without any port fails the same.

Thks 4 ur attention, interest & support.
I think your current situation is not Gentoo/Docker issue, it is container configuration issue.

So depend on what you like to do, Do you like to resolve the issue for not able start pgadmin4? or you prefer to learn more about docker debugging strategy?

For quick start pgadmin4, I suggest you change the binding to only IPv4, I have seem some docker images have application limit so bind to IPv6 will cause problem, so you can try

Code: Select all

docker run -p 0.0.0.0:80:80 -e PGADMIN_DISABLE_POSTFIX=1 -e ...
This will disable the postfix start in the entrypoint.sh and will let the script continue to start gunicorn for web service. If that does not work try

Code: Select all

docker run -p 0.0.0.0:80:80 -e PGADMIN_DISABLE_POSTFIX=1 --sysctl net.ipv6.conf.all.disable_ipv6=1 -e...
This is to ensure the container instance not using IPv6 stack.

If you wish to know more about docker debugging, we can try to start the container with shell (i.e. will not run the entrypoint.sh) In this way we can examine the container environment and execute step by step follow the entrypoint.sh to understand where exactly the cause.

Code: Select all

docker run -it --entrypoint /bin/sh -e...
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2182
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun May 26, 2024 6:10 pm

There apparently have another container environment variable "PGADMIN_LISTEN_ADDRESS=", so please also try to add it in to command line for example

Code: Select all

docker run -p 0.0.0.0:80:80 -e PGADMIN_DISABLE_POSTFIX=1 -e PGADMIN_LISTEN_ADDRESS=0.0.0.0 -e ...
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun May 26, 2024 9:17 pm

That's what so nice on Gentoo forums...
Unexpected and interesting ideas and proposals. +1

AFA quick start is concerned, IP4+IP6 made it run.

AFA pgadmin4 Desktop is concerned, I never found out how to (e)build version since v7.
Arch & Debian have binpkg though. :cry:

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2182
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun May 26, 2024 9:26 pm

CaptainBlood wrote:AFA quick start is concerned, IP4+IP6 made it run.
Mean you made changes to system (or kernel) to enable/disable IPv6?
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun May 26, 2024 10:00 pm

Kernel level.

Had a minimal kernel for riseup-vpn which requires IP4+6.
Still have to retrieve and remove riseup-vpn only kernel options.

Docker is pgadmin4 Server, not Desktop.

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2182
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sun May 26, 2024 10:05 pm

CaptainBlood wrote:Kernel level.

Had a minimal kernel for riseup-vpn which requires IP4+6.
Still have to retrieve and remove riseup-vpn only kernel options.

Docker is pgadmin4 Server, not Desktop.

Thks 4 ur attention, interest & support.
Thanks for the information. Hope your docker journey smooth and prosper :)
Top
Post Reply

18 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic