Docker and MongoDB 4.2 ....

For developer discussion on package requests
Post Reply
Message
Author
User avatar
dharmax
Posts: 4
Joined: Sun Aug 18, 2019 10:21 am

Docker and MongoDB 4.2 ....

#1 Post by dharmax »

i'm a software developer and i installed MX Linux about two months ago.
i sadly found out that there is no up to date package for MongoDB (it's just 3.2 wherein the latest is far newer and it contains features i have to use).
i decided to install a docker image with the up to date mongodb, but alas, there's no docker package too!
Furthermore, the manual docker installation didn't work (the service seems to not be installed).
i'm in pain.... :-( :rolleyes: :frown:

User avatar
Jerry3904
Administrator
Posts: 21960
Joined: Wed Jul 19, 2006 6:13 am

Re: Docker and MongoDB 4.2 ....

#2 Post by Jerry3904 »

Did you try the Debian 9 deb for MongoDB 4.2 on the website:

https://www.mongodb.com/download-center/community

On Docker, did you check the website?

https://docs.docker.com/install/linux/docker-ce/debian/
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
fehlix
Developer
Posts: 10383
Joined: Wed Apr 11, 2018 5:09 pm

Re: Docker and MongoDB 4.2 ....

#3 Post by fehlix »

dharmax wrote: Sun Aug 18, 2019 10:29 am i'm in pain.... :-( :rolleyes: :frown:
Hmm.., that's not good.
IIRC, the last time I installed Docker an a LiveUSB (!) the installation instructions I read worked well.
The best result to get help here in the forum is to provide detailed information about what's not working or what has been done.
As you might have done something we don't know, we can give only general instructions.
And perhaps also the hint to read this: (copied from JayM's signature-footer):
Please read How To Ask For Help and How to Break Your System.
MX User Manual: hold down ALT and press F1. Further information may be found in the MX Wiki.
:puppy:
PS: Welcome to the Forum!
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
dharmax
Posts: 4
Joined: Sun Aug 18, 2019 10:21 am

Re: Docker and MongoDB 4.2 ....

#4 Post by dharmax »

Thanks, @fehlix

Here's more information:
System:

Code: Select all

System:    Host: milarepa Kernel: 4.19.0-5-amd64 x86_64 bits: 64 Desktop: KDE Plasma 5.8.6 
           Distro: MX-18.3_x64 Continuum May 26  2019 
Machine:   Type: Laptop System: System76 product: Oryx Pro v: oryp3-ess serial: <root required> 
           Mobo: System76 model: Oryx Pro v: oryp3-ess serial: <root required> UEFI: American Megatrends 
           v: 1.05.02dRSA2 date: 02/20/2017 

Docker installation attempt:
  • In the official repositories there's no docker (although there's docker-compose, surprisingly)
    i went to the official docker site and downloaded docker-ce-cli_19.03.1~3-0~debian-stretch_amd64.deb and docker-ce_19.03.1~3-0~debian-stretch_amd64.deb
    When i tried to install the engine, it failed due to the lack of dependency containerd.io which lacks from the official repositories nor did i find where i can get it.
i'd appreciate any help

User avatar
JayM
Qualified MX Guide
Posts: 6793
Joined: Tue Jan 08, 2019 4:47 am

Re: Docker and MongoDB 4.2 ....

#5 Post by JayM »

To request new or updated software packages be added to the MX Repositories, please read these instructions. then post your request here.

I suggest that if you absolutely need the latest versions of application packages, a Linux distro based on Debian Stable or any other stable distro probably isn't the best fit for you. You may want to look for a Debian Sid-based distro or some other rolling release distro that has the newest versions of apps.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

User avatar
dharmax
Posts: 4
Joined: Sun Aug 18, 2019 10:21 am

Re: Docker and MongoDB 4.2 ....

#6 Post by dharmax »

JayM wrote: Mon Aug 19, 2019 4:21 am To request new or updated software packages be added to the MX Repositories, please read these instructions. then post your request here.

I suggest that if you absolutely need the latest versions of application packages, a Linux distro based on Debian Stable or any other stable distro probably isn't the best fit for you. You may want to look for a Debian Sid-based distro or some other rolling release distro that has the newest versions of apps.
Thank you Jay.
i don't need the latest version for MongoDB (4.2). 4.0 is enough, but even that i wouldn't need if there was any version of docker. For a developer, it is rather important....

User avatar
fehlix
Developer
Posts: 10383
Joined: Wed Apr 11, 2018 5:09 pm

Re: Docker and MongoDB 4.2 ....

#7 Post by fehlix »

How To Install Docker in MX Linux

Setup Docker repository

Get Docker repository key

Code: Select all

wget -O docker.gpg  https://download.docker.com/linux/debian/gpg 
Verify Docker public KeyID : 0x8D81803C0EBFCD88
Manually:

Code: Select all

gpg   --keyid-format 0xlong docker.gpg 2>/dev/null
pub   rsa4096/0x8D81803C0EBFCD88 2017-02-22 [SCEA]
      9DC858229FC7DD38854AE2D88D81803C0EBFCD88
uid                             Docker Release (CE deb) <docker@docker.com>
sub   rsa4096/0x7EA0A9C3F273FCD8 2017-02-22 [S]
Add Docker repo-key to apt's keyring
Check public-key and add to apt trusted keyring:

Code: Select all

gpg  --keyid-format 0xlong docker.gpg 2>/dev/null | grep -sq 0x8D81803C0EBFCD88 && sudo apt-key add docker.gpg
Add Docker repository to apt's sources.list

Code: Select all

# For MX 19 : 
CODENAME=buster
# For MX 18 : 
CODENAME=stretch
echo "deb [arch=amd64] https://download.docker.com/linux/debian $CODENAME  stable" | sudo tee /etc/apt/sources.list.d/docker.list
Refresh package lists:

Code: Select all

sudo apt update
Simulate to check docker installation

Code: Select all

sudo apt --simulate install docker-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  containerd.io docker-ce-cli
Recommended packages:
  aufs-tools cgroupfs-mount | cgroup-lite pigz
The following NEW packages will be installed:
  containerd.io docker-ce docker-ce-cli
0 upgraded, 3 newly installed, 0 to remove and 50 not upgraded.
Inst containerd.io (1.2.6-3 Docker CE:stretch [amd64])
Inst docker-ce-cli (5:19.03.1~3-0~debian-stretch Docker CE:stretch [amd64])
Inst docker-ce (5:19.03.1~3-0~debian-stretch Docker CE:stretch [amd64])
Conf containerd.io (1.2.6-3 Docker CE:stretch [amd64])
Conf docker-ce-cli (5:19.03.1~3-0~debian-stretch Docker CE:stretch [amd64])
Conf docker-ce (5:19.03.1~3-0~debian-stretch Docker CE:stretch [amd64])
Install docker

Code: Select all

sudo apt install docker-ce
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
dharmax
Posts: 4
Joined: Sun Aug 18, 2019 10:21 am

Re: Docker and MongoDB 4.2 ....

#8 Post by dharmax »

@fehlix - it works! Thanks a bunch! :number1:

User avatar
Stevo
Developer
Posts: 12841
Joined: Fri Dec 15, 2006 8:07 pm

Re: Docker and MongoDB 4.2 ....

#9 Post by Stevo »

You can also install MongoDB 4.2 from the developer's apt repo for Debian Stretch with a very similar procedure:

https://docs.mongodb.com/v4.0/tutorial/ ... on-debian/

You should remove any version from our own repos first, as they warn.

Post Reply

Return to “Package Requests / Status”