[ MongoDB 2 ] Install MongoDB in Linux | Running MongoDB in Docker Container

  Рет қаралды 13,033

Just me and Opensource

Just me and Opensource

Күн бұрын

Пікірлер: 51
@OliverQueen-yu3ly
@OliverQueen-yu3ly 4 жыл бұрын
Yo! Thanks a lot bro, I was getting so many error messages and your guide on arch helped out. It's working now. Thanks
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Oliver, thanks for watching. Glad that you found it useful. Cheers.
@jornejongsma
@jornejongsma 3 жыл бұрын
Great tutorial! One comment so far: (Actually two!): When mounting a volume for the Docker container, make sure that you use an absolute path! Wrong: -v data:/data/db Right: -v ~/mongo/data:/data/db Or : -v /mongo/data:/data/db Docker doesn't notify you if you're doing this wrong! Other thing: When you skip right to the Docker Container part (21:50), at some point you'll be connecting to the mongodb with the mongo shell, just by typing mongo into the terminal... That's not going to work if you only have mongo inside the container and not installed it directly on your system. Solution to get into the mongo shell inside the container, type: docker exec -it [container-name] mongo
@justmeandopensource
@justmeandopensource 3 жыл бұрын
Hi Jorne, many thanks for watching and sharing your tips. Regarding your first point, I am not binding a local directory but creating a new docker volume which creates a directory under /var/lib/docker/containers/..... and mounts it. Example: $ docker run --name mongo -p 27017:27017 -v mongo-data:/data/db mongo will create a local docker volume named mongo-data and is not an existing directory that you are mounting. Do a "docker volume ls" and you will see the mongo-data volume there. I agree, if you want to bind mount a local directory, you need to specify absolute path. I totally agree with your second point and thanks for sharing the tip on how to use mongo inside the container. Cheers.
@jornejongsma
@jornejongsma 3 жыл бұрын
@@justmeandopensource Aha! Well I'm new to Docker so that makes it a bit more clear, thanks! I first tried your example and couldn't find the mounted directory. So after a google search I came across a few examples that where specific about using an absolute path. There was one Medium post that even gave the advice to create an extra container with that mounted volume, but not really use the container, to make sure that in case you'd remove your running container (and volume) it wouldn't be able to remove your local data with that action.
@justmeandopensource
@justmeandopensource 3 жыл бұрын
@@jornejongsma Yeah. Removing the container won't delete the docker volume. You will have to "docker volume rm mongo-data" to manually remove it.
@davidgordon7856
@davidgordon7856 4 жыл бұрын
I love you this helped with my arch setup I was stuck for days till I found your vid
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi David, many thanks for watching. Glad it helped. Cheers.
@andrewnhien9714
@andrewnhien9714 4 жыл бұрын
Thanks Venkat! Very helpful, keep go on and care for your health.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Bao, many thanks for watching.
@samirmomin203
@samirmomin203 4 жыл бұрын
Thanks Venkat, It is a really very good installation video on different platforms. I like your way of teaching. Appreciated
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Samir, many thanks for your interest in this channel.
@qianbang_
@qianbang_ 4 жыл бұрын
Wow. This is so complete. Thanks for the tutorial!
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Qian, thanks for watching.
@Gabhane123
@Gabhane123 5 жыл бұрын
Awesome explanation ! very deep ! I am new to Mongo , very helpful for me
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Chethan, thanks for watching this video and taking time to comment. Cheers.
@outofahat9363
@outofahat9363 Жыл бұрын
7:55 and also if you are on RHEL a family linux make sure to disable SELinux or set the rule that allows you to change dbpath
@suvajitmca
@suvajitmca 4 жыл бұрын
There there are severel mount points i want to use for mongod.conf for datapath...Do i just need to specify the path separated by comma? Like /u01/mongo,/u02/mongo?????
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Suvajit, thanks for watching. I don't get your question. Please explain what you are trying to achieve and why and what steps have you done and what error are you seeing. Cheers.
@suvajitmca
@suvajitmca 4 жыл бұрын
@@justmeandopensource Hi,First of all big thubs up for all your vedio..So effective..please let me know how to put multiple dbpath in mongod.conf?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@suvajitmca Did you see my previous comment?
@suvajitmca
@suvajitmca 4 жыл бұрын
@@justmeandopensource Yes I saw..But I am not yet deployed, so there is no error.. Say for example in a server there are 3 mount point '/u01','/u02','/u03' and i want to put all the data in 3 storage space like '/u01/mongo-data','/u02/mongo-data','/u03/mongo-data'...My question is can I achieve this by simply add the datapaths in mongod.conf..---.dbpath:'/u01/mongo-data','/u02/mongo-data','/u03/mongo-data'.Will this works?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@suvajitmca Okay. You need a directory to store db data. This is configured in the mongod.conf configuration file for the variable dbpath. Each mongod is a single process that requires single dbpath directory. I don't understand why you would want to mount 3 directories.
@manikandans8808
@manikandans8808 5 жыл бұрын
Is was a nice one..I tried it many times with many flavours of Linux as well as the aws also..it's much interesting about the mongodb components you have explained in this video initially. And out of the box I have noticed the customisation of the desktop it was wonderful. Can you explain me how you customised ur apps without a toolbox?
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Mani, thanks for watching this video. I am using Manjaro i3 edition. I3 is a tiling window manager. Simple and minimalist desktop environment. For the status bar at the bottom, I am using i3blocks with custom scripts for each items you see there. Thanks.
@manikandans8808
@manikandans8808 5 жыл бұрын
@@justmeandopensource that's interesting..let me try... waiting for the next one....
@justmeandopensource
@justmeandopensource 5 жыл бұрын
@@manikandans8808 Cheers.
@shridharbandgar6180
@shridharbandgar6180 4 жыл бұрын
Actually I am running mongo on docker container.. Also I restored mongo database to server.... In server mongo all are shown like db, collection and data.... But in container of mongo they shown db, and collection only... In collection data is empty..... How I do migration..??
@gulzadakasymbekova8918
@gulzadakasymbekova8918 5 жыл бұрын
Hi! I have os Ubuntu. A try write on terminal “lxc list”, but terminal coudnt found this command. Why?
@justmeandopensource
@justmeandopensource 5 жыл бұрын
HI Gulzada, you will have to install lxc/lxd first. You can watch my "Getting Started with LXC Containers" video at kzbin.info/www/bejne/eYjQnIaglKdgrdE where I explained how to install and use LXC/LXD. Cheers.
@jondalard8581
@jondalard8581 3 жыл бұрын
thank you so much you helped me alot
@justmeandopensource
@justmeandopensource 3 жыл бұрын
hi Jon, thanks for watching. Cheers.
@tarunbansal9135
@tarunbansal9135 5 жыл бұрын
hi i tried your command in ubuntu container but it said systemctl command not found. Please help
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Tarun, Thanks for watching. What command were you running exactly? And from which machine? I would like to have more details please.. Thanks.
@karthickc9058
@karthickc9058 4 жыл бұрын
Hi, nice video. Thanks a lot. I tried to do this on my GoDaddy server. I'm getting no mongodb-org package available. Can you help me sort it out. Thanks in advance.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Karthick, thanks for watching. What OS are you using? You will need to set up repository as mongodb-org won't be available in default yum or apt repository.
@karthickc9058
@karthickc9058 4 жыл бұрын
@@justmeandopensource I'm using Linux Cent OS Cpanel. Can you help with this.?
@justmeandopensource
@justmeandopensource 4 жыл бұрын
@@karthickc9058 I have already covered installation topic in the below video. This should give you direction on how to install it on CentOS 7. kzbin.info/www/bejne/eKSWpIOGjNV4ZtE Cheers.
@kennethsarfo
@kennethsarfo 5 жыл бұрын
Thank you so much, this is really helpful but please slow down with the explanation and also the commands so we can follow.
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Kenneth, thanks for watching this video and thanks for your feedback. I will make sure to slow down a bit in the future videos I record. Cheers.
@muhammadahmad2541
@muhammadahmad2541 4 жыл бұрын
can I install latest version with this? I am on arch.
@justmeandopensource
@justmeandopensource 4 жыл бұрын
Hi Ahmad, thanks for watching. Yes you should be able to use latest docker container image.
@ProgrammingWithKamlesh
@ProgrammingWithKamlesh 4 жыл бұрын
hi venkat this is very helpfull tutorial can please tell me how to make 3 nodes server for replica deployment on centos 7
@atharvakokate6388
@atharvakokate6388 5 жыл бұрын
Thanks Man
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Atharva, you are welcome and thanks for watching this video.
@atharvakokate6388
@atharvakokate6388 5 жыл бұрын
@@justmeandopensource hey, what kernel are you using for manjaro? Is the gnome working on kernel 5.3(gnome-tweaks)?
@justmeandopensource
@justmeandopensource 5 жыл бұрын
Hi Atharva, I am using 5.2.11-1-MANJARO kernel. I don't use Gnome DE anymore. Switched to I3 long time back. I have done a video on my current desktop setup which will release shortly.
[ MongoDB 3 ] Working with Databases, Collections & Documents
33:13
Just me and Opensource
Рет қаралды 14 М.
[ MongoDB 6 ] How to Deploy a MongoDB ReplicaSet
25:59
Just me and Opensource
Рет қаралды 58 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 109 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 21 МЛН
you need to learn Docker RIGHT NOW!! // Docker Containers 101
23:19
NetworkChuck
Рет қаралды 2,8 МЛН
[ MongoDB 7 ] Set up Sharding in MongoDB using Docker containers
24:30
Just me and Opensource
Рет қаралды 30 М.
I switched to Linux 30 days ago... How did it go?
28:46
Craft Computing
Рет қаралды 289 М.
An Introduction To Hyprland ...
8:38
Michael Horn
Рет қаралды 190 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 306 М.
[ MongoDB 9 ] Sharding a MongoDB Collection
18:28
Just me and Opensource
Рет қаралды 48 М.
Spinning MongoDB, MongoShell and Mongo GUI with Docker
19:09
Hussein Nasser
Рет қаралды 19 М.
ThePrimeagen On Running Linux
9:40
Tech Over Tea
Рет қаралды 289 М.
[ MongoDB 11 ] Deploying a Replicaset using OpsManager
11:57
Just me and Opensource
Рет қаралды 8 М.