Operating System Articles

Page 78 of 171

How to run a command inside Docker Container?

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 3K+ Views

After you build a Docker image and create a running instance of it (a Docker container), you might want to execute commands inside the container to install packages, browse directories, or perform various tasks. Docker provides several methods to access the container environment and execute commands. In this article, we will explore different ways to run commands inside Docker containers. Using Docker exec Command The docker exec command allows you to run commands in a running container from your local machine's command line. First, you need the container ID of the target container. Get Container Information ...

Read More

Building a full-fledged data science Docker Container

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 290 Views

The combination of machine learning and containerization has revolutionized how data scientists develop and deploy applications. Organizations are rapidly adopting machine learning techniques to analyze data and improve customer satisfaction, while Docker containers provide a consistent, portable environment for development and deployment. In this article, we will build a comprehensive data science Docker container with all essential libraries and packages pre-installed. This containerized environment will help you get started with machine learning and data science projects quickly and efficiently. Essential Python Libraries for Data Science Before building our container, let's examine the core Python packages needed for ...

Read More

Maintain and Manipulate Docker Containers

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 436 Views

Knowing how to create a dockerfile and build a docker image using that dockerfile, we can move ahead and dive deep into more advanced ways to manipulate docker containers. When we talk about manipulating docker containers, we include running, listing, restarting, cleaning up the dangling containers, running containers in interactive and detached modes, creating containers using executable images, executing commands inside docker containers using exec command and starting a bash inside a container, accessing logs from a docker container and killing or stopping a docker container. Without any further ado, let's dive deep into manipulating docker containers. Running ...

Read More

Running a static site on Apache Server from Docker

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 2K+ Views

Docker containers are widely used in development workflows for building, distributing, testing, and deploying applications. They enable developer collaboration, version management, and local testing by hosting applications on containerized servers. This article demonstrates how to run a static website on an Apache server inside a Docker container and access it through your local browser. A static website consists of HTML, CSS, and minimal JavaScript without dynamic content rendering. Project Structure First, create the following directory structure − project-folder/ ├── Dockerfile └── mysite/ └── index.html Creating the Static Website ...

Read More

How to use an OVS Bridge for Networking on Docker?

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 4K+ Views

OVS bridges or Open vSwitch bridges are used as an alternative to the native bridges in Linux. They support most features found in physical switches while also supporting multiple VLANs on a single bridge. OVS is widely used in Docker networking because it provides enhanced multi-host networking capabilities and more secure communication compared to native bridges. In this article, we will discuss how to perform Docker networking using Open vSwitch bridges (OVS). We will cover the installation of OVS and the OVS utility for Docker, create an OVS bridge, connect two Docker containers to the bridge, and test the ...

Read More

Build a flask App using Docker Compose

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 2K+ Views

Docker Compose allows you to build multi-container Docker applications. If you are working on a microservice project where you have different nodes working on different parts of the project, Docker Compose is exactly what you need. Using Docker Compose, you can work on different components of the project on different Docker containers and combine them to create a single application. In this article, we are going to discuss how to build a Flask application which uses Python modules and we will try to run it inside a Docker container using Docker Compose. Installing Docker Compose First, you ...

Read More

Create a simple Numpy Jupyter Notebook using Docker

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 532 Views

Machine learning and Data Science have become essential technologies in modern computing. Organizations adopt Data Analytics and Machine Learning techniques to predict sales and increase revenue. If you want to build machine learning models in a dynamic and contained environment, Docker containers provide an excellent solution. You can build and run Machine Learning models easily inside Docker Containers with the help of Jupyter Notebooks. The containerized environment provides better version control of your Python or R libraries and packages used in Machine Learning projects. In this article, we will discuss how to create a simple NumPy Jupyter Notebook ...

Read More

Working with Docker Swarm

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 1K+ Views

Docker Swarm is a container orchestration tool that enables you to manage a cluster of Docker nodes as a single virtual system. It provides native clustering functionality for Docker containers, allowing you to deploy and scale applications across multiple machines while maintaining high availability and load balancing. In a Docker Swarm cluster, there are two types of nodes: manager nodes that control the cluster and make orchestration decisions, and worker nodes that run the actual containers. The swarm manager handles scheduling, load balancing, and service discovery automatically. Docker Swarm operates in two service modes: Replicated Service mode where ...

Read More

User defined bridge on Docker network

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 1K+ Views

A user-defined bridge network in Docker provides enhanced networking capabilities compared to the default bridge network. It allows containers to communicate using container names instead of IP addresses, offers better isolation, and provides more flexible network management options. Advantages of User-Defined Bridge Networks User-defined bridge networks offer several key benefits over default bridge networks: Name-based communication − Containers can access each other using names or aliases instead of IP addresses Better isolation − Only containers within the same user-defined network can communicate with each other Dynamic connectivity − Containers can be connected or disconnected from networks ...

Read More

Running Docker Container as a Non Root User

Raunak Jain
Raunak Jain
Updated on 17-Mar-2026 7K+ Views

When you run an application inside a Docker Container, by default it has access to all the root privileges. You might have noticed that when you open an Ubuntu Docker Container bash, you are logged in as the root user by default. This can prove to be a major security concern for your application. Any unauthorized access can compromise the entire container along with all the files and applications running inside it. Hence, it becomes very important to perform operations as a non-root user wherever possible. In this article, we will discuss two methods to run Docker containers as ...

Read More
Showing 771–780 of 1,707 articles
« Prev 1 76 77 78 79 80 171 Next »
Advertisements