Found 48 Articles for Virtual Machines

How to start tensorflow Docker jupyter notebook?

Diksha Patro
Updated on 17-Jan-2023 18:54:37

2K+ Views

Introduction Jupyter notebooks are useful for writing, testing, and debugging code. TensorFlow is a machine learning framework that can be used with Jupyter notebooks. In this article, we will explore how to use Docker to start a TensorFlow Jupyter notebook, which will allow us to take advantage of the benefits of both of these tools. Prerequisites Before getting started, you will need to have Docker and Docker Compose installed on your machine. You can check if it is installed using the following commands − $ docker --version $ docker-compose --version You can follow the installation instructions for your ... Read More

How to rebuild Docker container on file changes?

Diksha Patro
Updated on 06-Sep-2023 12:53:52

46K+ Views

Docker is a widely used containerization solution that allows programmers to easily package and distribute software in a lightweight and portable manner. The capability of rebuilding a container once modifications are made to its files is one of Docker's key features. This can be very helpful for a number of things, like making sure that code changes are appropriately reflected in a development environment or that code updates are always reflected in a containerized application. In this article, we will go into Docker's crucial feature and examine how it may be used to rebuild a container when files are changed. ... Read More

How to manage secret values with docker-compose v3.1?

Diksha Patro
Updated on 17-Jan-2023 18:24:41

2K+ Views

Introduction As developers, we frequently need to incorporate private data into our applications, including passwords, API keys, and database credentials. Not only is it unsafe to hardcode these variables into our code or configuration files, but it can also be challenging to manage and change them when necessary. Using environment variables, which let us keep sensitive data apart from our codebase and configuration files, is one method to manage secret values. In this article, we'll look at how to maintain secret values using docker-compose v3.1 and inject them as environment variables into our containers. Prerequisites To follow along with this ... Read More

How to Improve Docker Image Size With Layers?

Diksha Patro
Updated on 17-Jan-2023 18:22:20

230 Views

In this article, we will discuss various approaches and techniques for improving Docker image size with layers, including multi-stage builds, using minimal base images, and using base images with pre-installed packages or pre-built binaries. By following these best practices, we can create smaller and more efficient Docker images that are optimized for performance and scalability. The size of Docker images with layers can be improved using a variety of methods as given below. Methods Using minimal base images Using base images with pre-built binaries Using multi-stage builds Using base images with pre-installed packages Let us discuss these methods ... Read More

How to Find the layers and layer sizes for each Docker image?

Diksha Patro
Updated on 17-Jan-2023 18:14:29

5K+ Views

Introduction By using containerization, we can quickly set up and configure our deployment environments, which helps us save time and resources. With the goal of "write once, deploy anywhere" in mind, containerization can help us streamline the process of deploying modern applications, which can be complex. Finding the layers and layer sizes for Docker images In this article, we will explore how to find the layers and layer sizes for each Docker image. This can be useful for identifying large layers that may be contributing to the overall size of the image, and for determining which layers can be removed ... Read More

How to find Docker container processes?

Diksha Patro
Updated on 17-Jan-2023 18:11:05

10K+ Views

Introduction Docker is a powerful tool that allows developers to build, ship, and run applications inside containers. Containers are small, independent executable packages that contain all the components - code, libraries, dependencies, and runtime - that an application requires to function. One of the key features of Docker is the ability to manage and monitor the processes running inside containers. In this article, we will explore how to find Docker container processes and how to use different methods to view and manage them. Prerequisites You will need Docker installed on your computer in order to follow along with this guide. ... Read More

How to directly mount NFS share/volume in a container using Docker Compose v3?

Diksha Patro
Updated on 17-Jan-2023 17:53:10

7K+ Views

Docker is a widely used tool for developing and managing containerized applications. It enables programmers to combine their applications with their dependencies into small, portable containers that are simple to set up and use on any platform. Directly mounting Network File System (NFS) shares or volumes inside a container using Docker Compose v3 is one practical Docker capability. In this article, we will explore how to use Docker Compose v3 to directly mount an NFS share or volume in a container. Method to directly mount NFS share/volume in the container using Docker Compose v3 Here are some important terms and ... Read More

Setting ulimit Values on Docker Containers?

Hemant Sharma
Updated on 16-Jan-2023 14:58:12

6K+ Views

Introduction Ulimit is a Unix/Linux utility that is used to set resource limits for processes running on the system. These limits can help prevent a single process from consuming too many resources, such as CPU or memory, and potentially impacting the overall performance of the system. To see the ulimit on your Linux machine, use the below command. $ ulimit –a Output real-time non-blocking time (microseconds, -R) unlimited core file size (blocks, -c) 0 data seg size ... Read More

How to Use Volume Sharing in Docker Swarm?

Hemant Sharma
Updated on 16-Jan-2023 14:54:42

8K+ Views

Introduction Docker Swarm is a popular container orchestration platform that allows users to deploy and manage containers at scale. One of the key features of Docker Swarm is its support for volume sharing, which allows containers to access and share data stored in persistent volumes. In this article, we will explain what volumes are, how they are used in Docker Swarm and show examples of how volume sharing can be implemented in different scenarios. Prerequisite Basic knowledge of Docker and containerization Familiarity with Docker Swarm Understanding of volumes in Docker Experience with the command line What is Docker ... Read More

How to run a Docker image in IBM Cloud Functions?

Hemant Sharma
Updated on 16-Jan-2023 14:49:41

208 Views

Introduction to Docker and IBM Cloud Functions Docker is a popular containerization platform that allows you to package applications and their dependencies into lightweight, portable containers. These containers can then be easily deployed and run on any machine with Docker installed, making it easy to manage and scale applications. IBM Cloud Functions is a serverless computing platform that allows you to run code in response to triggers such as HTTP requests, events, or data updates. IBM Cloud Functions can run a variety of languages, including JavaScript, Python, and Go, and it integrates seamlessly with Docker. Using Docker with IBM Cloud ... Read More

Advertisements