German Gerken
German Gerken
  • 14
  • 15 195
How to Set Up Redis with Docker: Fixed IP and Basic Commands Tutorial
Redis is a high-performance, in-memory, multi-model database known for its sub-millisecond latency and versatility. In this video, I’ll guide you through setting up Redis in Docker and ensuring your container has a fixed IP address for consistent access. We’ll also explore Redis’s unique features, such as its ability to combine memory speed with durable persistence and its support for multiple data models like graphs, JSON, and more.
By the end of this tutorial, you’ll have a fully functional Redis setup, ready to handle your data needs-whether as a cache, a primary database, or a multi-model powerhouse. Let’s get started!
Links:
GitHub Repository (Code and examples): github.com/GermanGerken/redis-docker
My LinkedIn (Let’s connect!): www.linkedin.com/in/german-gerken/
Commands Used in the Video:
Step 1: Pull the Redis Image
Download the official Redis image from Docker Hub.
docker pull redis
Step 2: Create a Custom Docker Network
Set up a Docker network with a specific subnet to assign a fixed IP address to your Redis container.
docker network create \
--subnet=192.168.1.0/24 \
redis-network
Step 3: Run the Redis Container with a Fixed IP Address
Start the Redis container and assign it a fixed IP address for consistent access.
docker run --name redis-server \
--net redis-network \
--ip 192.168.1.100 \
-d redis
Step 4: Verify the Container is Running
Check if the Redis container is up and running.
docker ps
Step 5: Find the Container’s IP Address (Optional)
Double-check the container’s assigned IP address.
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' redis-server
Step 6: Connect to Redis Using Redis CLI
Access the Redis CLI to interact with your database.
docker exec -it redis-server redis-cli
Step 7: Basic Redis Commands
Set a key-value pair:
SET mykey 'Hello, Redis!'
Retrieve a value by key:
GET mykey
Highlights:
Install Redis using Docker.
Assign a fixed IP address to your Redis container.
Interact with Redis via the CLI using simple commands.
Learn why Redis is more than just a cache and how it can be used as a multi-model database.
If you found this video helpful, please like, comment, and subscribe for more tech tutorials and insights. Thanks for watching!
Переглядів: 112

Відео

How to Set Up PostgreSQL and pgAdmin with Docker: Step-by-Step Tutorial
Переглядів 1542 місяці тому
In this video, I’ll guide you through the step-by-step process of setting up PostgreSQL and pgAdmin 4 using Docker. Whether you’re a beginner or looking for an efficient way to manage your databases, this tutorial has you covered. We’ll start by pulling the necessary Docker images, setting up containers for PostgreSQL and pgAdmin, and connecting them. I’ll also demonstrate how to create a datab...
How to Find a Job After Layoff: Essential Tips and Strategies
Переглядів 303 місяці тому
In this video, I’m sharing effective strategies for finding a job after a layoff, plus some essential tips for those just starting their careers. The first part is for those affected by layoffs: I’ll cover how to stay motivated, keep a routine, set up a job application tracker, and build a support network. The second part includes advice for beginners who want to stand out in a crowded job mark...
What is ClickHouse? How to Install & Run ClickHouse with Docker
Переглядів 1 тис.3 місяці тому
In this video, I’ll walk you through what ClickHouse is, why it's such a powerful choice for real-time analytics, and how to set it up using Docker. ClickHouse is a column-oriented, open-source OLAP database designed for high-speed queries on large datasets, perfect for businesses that need fast, reliable data processing. We'll cover: What ClickHouse is and how it works. Key benefits of using a...
From Factory to Senior Data Engineer: My Journey
Переглядів 413 місяці тому
In this video, I share my inspiring journey from a junior software developer in a small local factory to a senior data engineer. I talk about the challenges I faced, the skills I learned, and how I transitioned into data engineering. From hours of self-study to overcoming job rejections, I never gave up on my dream. I talk about career moments, including my breakthrough at Accenture and my curr...
Python Object-Oriented Programming: Object is Core Of OOP
Переглядів 1711 місяців тому
Hey there! Ever wondered what makes Python tick? Join me on a fascinating exploration of Python's object-oriented programming (OOP) concepts in this video. Together, we'll dive deep into the world of Python objects, uncovering their secrets and learning how they power the language. From the basics to advanced techniques, I'll guide you through everything you need to know about objects and class...
Discover the Best Platform to Learn SQL : SQL Practice Exercises
Переглядів 25Рік тому
Welcome to my channel! Are you ready to embark on a journey of SQL mastery? In this video, we're diving into the world of SQL practice exercises and introducing you to the best platform to enhance your data querying skills. 🚀 🔍 Have you ever wanted to improve your SQL skills in a hands-on and interactive way? Look no further! Join us as we explore the platform that offers a range of SQL practic...
OOP with Simple Examples on Python: Object-Oriented Programming
Переглядів 141Рік тому
Welcome to my UA-cam channel! In this video, we're diving into the world of Object-Oriented Programming (OOP) with simple and relatable examples. If you've ever been curious about OOP and want to understand its core principles in an easy-to-follow way, you're in the right place. 🔥 What's Covered in This Video 🔥 We'll start by demystifying OOP and breaking down its fundamental concepts. Through ...
How to Setup Proxy with Authentication for Web Scraping using Selenium: Step-by-Step Tutorial
Переглядів 2,5 тис.Рік тому
Unlock the secrets of efficient web scraping with our comprehensive tutorial on setting up proxy with authentication using Selenium. In this step-by-step guide, we'll demystify the process and equip you with the tools to overcome limitations and scrape the web like a pro. And I'll show on example how does it work. We scrape themoviedb.org trending movies. Git Proxy auth - github.com/Smartproxy/...
How to Setup Selenium on Docker for Web Scraping: A Complete Guide
Переглядів 11 тис.Рік тому
Are you tired of dealing with messy dependencies and version conflicts when running your Selenium web scraping code on different machines? Look no further than Docker! In this video, we'll show you how to set up Docker for Selenium web scraping and demonstrate the benefits of using Docker to create a self-contained environment for your code. We'll walk you through the process of writing a simpl...

КОМЕНТАРІ

  • @fikretakbass
    @fikretakbass Місяць тому

    Hİ, could you make a video that about connection between pgadmin desktop and docker compose.?

    • @germangerken
      @germangerken 27 днів тому

      Hi! Thanks for the great question. I hope I understood it correctly, and here’s a video I made that explains how to connect pgAdmin Desktop to a PostgreSQL container using Docker Compose: ua-cam.com/users/shorts_uEL8Fz7q_M?feature=share. Let me know if this answers your question or if you’d like me to cover something else!

  • @clemenceabel5494
    @clemenceabel5494 Місяць тому

    You thumbnails can be improved, drop your contact I can do that for

    • @germangerken
      @germangerken 27 днів тому

      Thank you for the offer, I really appreciate it! For now, I want to experiment and develop my own style for thumbnails, but I’ll keep your suggestion in mind. Thanks again!

  • @alandmcleod5988
    @alandmcleod5988 Місяць тому

    Excellent! Worked straight away. Thank you!

    • @germangerken
      @germangerken Місяць тому

      Glad it worked perfectly for you!

  • @germangerken
    @germangerken 3 місяці тому

    My social media: LinkedIn - www.linkedin.com/in/german-gerken

  • @germangerken
    @germangerken 3 місяці тому

    Useful Links: ClickHouse Documentation - clickhouse.com/docs Download Docker Desktop - www.docker.com My social media: LinkedIn - www.linkedin.com/in/german-gerken

  • @alexdin1565
    @alexdin1565 3 місяці тому

    bro can you make crash course about coolify?

    • @germangerken
      @germangerken 3 місяці тому

      Great idea! A video about Coolify could be really helpful for many people. Thanks for the suggestion, I’ll definitely consider making it!

  • @KashishVarshney-cr7iz
    @KashishVarshney-cr7iz 7 місяців тому

    this is not making any sense because you are manually fixing things for chrome driver.

  • @NesrineSahli-wz2lx
    @NesrineSahli-wz2lx 8 місяців тому

    Doesn't work

  • @mrboss8237
    @mrboss8237 8 місяців тому

    Thank you very much! Like ur video

    • @germangerken
      @germangerken 27 днів тому

      Thank you so much for your kind words! I’m really glad you liked the video. Stay tuned for more content!

  • @abdullahansari5329
    @abdullahansari5329 10 місяців тому

    Thank you very much my code is working fine Thanks a lot bro😘

    • @germangerken
      @germangerken 27 днів тому

      Thank you so much for your kind words! I’m really glad you liked the video. Stay tuned for more content!

    • @abdullahansari5329
      @abdullahansari5329 27 днів тому

      @@germangerken Your welcome

  • @AchrafBella-h5l
    @AchrafBella-h5l Рік тому

    This shit will no where work, what people looking for is how to deploy it in AWS for example update ur video

  • @Karymemontolis
    @Karymemontolis Рік тому

    Diversity in residential IPs from Zeus Proxy ensures that my online activities appear authentic and varied, further safeguarding against algorithmic scrutiny on social media platforms.

  • @알리오올리오-c9h
    @알리오올리오-c9h Рік тому

    Does this code support socks5 as well?

  • @kapilbadokar
    @kapilbadokar Рік тому

    Will this configuration work if i want to deploy it to AWS Lambda?

  • @shashiranjan7451
    @shashiranjan7451 Рік тому

    I guess it will not work if we deploy this anywhere else because you didn't add the chrome and driver in the docker image.

    • @kapilbadokar
      @kapilbadokar Рік тому

      Will this configuration work if i want to deploy it to AWS Lambda?

  • @b-easy-sp0
    @b-easy-sp0 Рік тому

    Is there a needed web driver that is needed to be installed into the docker container in the first place? Or is it running based on the driver that you have on your machine?

    • @DSRajaduraiP
      @DSRajaduraiP Рік тому

      Need to download in docker container

  • @Rulezzz3
    @Rulezzz3 Рік тому

    Довольно чистая речь

    • @germangerken
      @germangerken 11 місяців тому

      Спасибо, стараюсь следить за произношением!

  • @jairajsahgal7101
    @jairajsahgal7101 Рік тому

    Thank you

  • @horstrj
    @horstrj Рік тому

    Having first learned basic programming back in the 80's, when I first encountered OOP, I was completely lost. It took me years of trying..failing..quitting..retrying..failing..etc before the lightbulb finally went off. I read books and watched videos. All of them used examples similar to yours. Essentially how you can use/create objects and classes. For me, that was the wrong focus of attention. My programs were too simple to really need to create these things. The lightbulb went on when I instead realized fully, that I needed to understand that classes were fundamental to how the language was built and that everything was an object. X = "Hello" in basic is not the same as X="Hello" in an OOP language. In the latter, X is a string object which inherits all the string methods and whatever is farther up the inheritance chain. Thats when I really started digging into what does a string object come with..or a list object..or whatever and I really started digging into the documentation and understanding. It was still quite awhile before I made my own program that ran into a problem that required me to build my own class... Anyways, just an observation. Explaining this aspect of OOP is a crowded space. 99.9% cover what you just did. Explaining what hung me up (and I assume others) is a pretty vacant space...

    • @germangerken
      @germangerken 11 місяців тому

      Thank you for sharing your experience and insight! It's valuable to hear about your journey with object-oriented programming. Understanding the fundamental concepts behind classes and objects can indeed be a challenging but crucial aspect of mastering OOP. Thanks again for the great idea!

  • @ilgizrakhimyanov6546
    @ilgizrakhimyanov6546 Рік тому

    Проделал все то же самое, однако получаю ошибки об отсутствующих зависимостей по типу fonts-liberation, libatk-bridge2.0-0 и т.д. Объясни плс как так, куда копать

    • @germangerken
      @germangerken 11 місяців тому

      Прошу прошения за долгий ответ, не было времени на канал, я постараюсь в ближайшее время посмотреть, я с этим не столкнулся поэтому сразу ответить не могу

  • @heyarnoldo9861
    @heyarnoldo9861 Рік тому

    Nice Video

    • @germangerken
      @germangerken Рік тому

      Thank you so much! I'm glad you enjoyed the video. If you have any questions or topics you'd like to see covered in the future, feel free to let me know. Stay tuned for more content! 😊

  • @alexdin1565
    @alexdin1565 Рік тому

    thanks for this amazing video please can we use this docker as a flask api and connect to it from our host machine?

    • @germangerken
      @germangerken Рік тому

      Thank you for your kind words! Absolutely, you can definitely use Docker to set up a Flask API and connect to it from your host machine. Docker is a powerful tool that allows you to create isolated environments for your applications, and it's a great way to ensure consistency across different development and production environments.

    • @germangerken
      @germangerken Рік тому

      I will definitely make a video on this topic. Thx for the idea!

  • @germangerken
    @germangerken Рік тому

    For now I can't post link in description so I'll leave it here Git Proxy auth - github.com/Smartproxy/Selenium-proxy-authentication Git with my example - github.com/GermanGerken/docker_proxy

  • @Guee8
    @Guee8 Рік тому

    Could you give the git repository please?

    • @germangerken
      @germangerken Рік тому

      Hello, yes sure! github.com/GermanGerken/docker_selenium also add it to description)) Thanks you for reach out to me!

  • @89166863678
    @89166863678 Рік тому

    Наш акцент трудно не узнать, но автор долго не выдавал себя, пока на Амазоне не появилась доставка в Российскую Федерацию 😂

    • @germangerken
      @germangerken Рік тому

      У меня особо не было намерения скрываться, но мне приятно что акцент не сразу меня выдал)) Хотя когда сам смотрю слышу его ооочень