Articles on Trending Technologies

Technical articles with clear explanations and examples

Protect the Docker daemon socket

Hemant Sharma
Hemant Sharma
Updated on 30-Jan-2023 767 Views

Introduction The Docker daemon is a background process that manages Docker containers and is responsible for the creation, execution, and deletion of containers. One key component of the Docker daemon is the Docker daemon socket, which is used to communicate with the daemon from the Docker CLI and other applications. It is important to secure the Docker daemon socket to prevent unauthorized access to the Docker daemon and to protect sensitive information that may be exposed through the socket. In this article, we will discuss the location and default permissions of the Docker daemon socket, potential security risks, and best ...

Read More

How to run splash using Docker toolbox?

Hemant Sharma
Hemant Sharma
Updated on 30-Jan-2023 571 Views

Introduction Splash is a powerful tool for rendering JavaScript-based websites, making it an essential tool for web scraping and data extraction. In this tutorial, we will show you how to run Splash using Docker Toolbox, an older version of Docker that is no longer being maintained but is still available for download. Prerequisites Before you can get started, you will need to install Docker Toolbox on your machine. Docker Toolbox is a version of Docker that is designed to run on older systems and/or systems without native virtualization. It is available for Windows, macOS, and Linux. Follow the steps ...

Read More

How to reference embedded Docker resource files using file path URL?

Hemant Sharma
Hemant Sharma
Updated on 30-Jan-2023 3K+ Views

Introduction Embedded Docker resource files are files included in a Docker image rather than stored on the host file system or an external network location. These files can be useful for including configuration files, scripts, or other resources that are needed by the applications or processes running in the Docker container. You can reference embedded Docker resource files in several different ways, including using file path URLs. This article explains what file path URLs are and how to use them to reference embedded Docker resource files. We will also provide tips and examples to help you use file path URLs ...

Read More

How to change user config in Docker tomcat 8?

Hemant Sharma
Hemant Sharma
Updated on 30-Jan-2023 3K+ Views

Introduction In a Docker Tomcat 8 container, you may want to change the user configuration to add or modify users and roles. This modification can be useful for tasks like securing access to the Tomcat 8 instance or setting up different levels of permissions for different users. This article explains how to change the user configuration in a Docker Tomcat 8 container. We cover the steps involved in modifying the tomcat-users.xml file, building a new Docker image with the modified configuration, and running a Docker container from the new image. Prerequisites Before changing the user configuration in a Docker Tomcat ...

Read More

How to access JMX interface in docker from outside?

Hemant Sharma
Hemant Sharma
Updated on 30-Jan-2023 3K+ Views

JMX and its use in Java applications JMX (Java Management Extensions) is a Java technology that provides a way to manage and monitor Java applications. It exposes a set of APIs and MBeans (Java objects that represent resources to be managed) that can be used to monitor and control the behaviour of a Java application. JMX is commonly used in Java-based applications to monitor performance metrics such as memory usage, CPU utilization, and thread counts, as well as to manage and configure the application at runtime. Accessing JMX from outside a Docker container When running a Java application in a ...

Read More

Best way to install Docker on Vagrant

Hemant Sharma
Hemant Sharma
Updated on 30-Jan-2023 2K+ Views

Introduction Vagrant is a tool for building and managing development environments using virtualization software such as VirtualBox. It allows you to define and configure a development environment in a Vagrantfile and then spin up and tear down virtual machines quickly and easily. By using Docker and Vagrant together, you can create a flexible and reproducible development environment that is easy to set up and maintain. This article discusses the best way to install Docker on Vagrant, including the prerequisites, installation steps, and verification. Prerequisites for installing Docker on Vagrant Before installing Docker on Vagrant, you must ensure you have the ...

Read More

Swift Program to Print object of a class

Ankita Saini
Ankita Saini
Updated on 27-Jan-2023 2K+ Views

In this article, we will learn how to write a swift program to print object of a class. A class object is known as an instance of a class. For example, colour is a class then obj1, obj2, obj3 and obj4 are the objects from the class. A class can have multiple objects. Syntax var objectname = Classname() Here, using the above syntax we can create an object of a class. Algorithm Step 1 − Create a class with properties and a constructor. Step 2 − Create a function to print the object of the given class. Step ...

Read More

Swift Program to fill an array with a specific element

Ankita Saini
Ankita Saini
Updated on 27-Jan-2023 1K+ Views

In this article, we will learn how to write a swift program to fill an array with a specific element. An array is used to store elements of same data type in an order whereas a set is used to store distinct elements of same data type without any definite order. In an array, every element has an index. The array index is start from 0 and goes up to N-1. Here N represent the total number of array elements. We can fill an array with a specified element using the following methods − Using user defined function Using ...

Read More

Difference between Obamacare and Romneycare

Vineet Nanda
Vineet Nanda
Updated on 27-Jan-2023 265 Views

According to Barak Obama, the Affordable Care Act (aka Obamacare) borrows heavily from similar state-level legislation (aka Romneycare) implemented in Massachusetts in 2006 and passed by then-governor Mitt Romney. The ACA exchanges' less-than- smooth launch, combined with recent revelations that many people who buy health insurance on the individual market are receiving cancellation notices, has some Americans wondering if the new law will work. President Barack Obama cites the success of Massachusetts' health-care reform as proof that, despite a rocky start, the law will work to provide nearly universal coverage to all Americans. What is Obamacare? At the national and ...

Read More

Strategies For Migrating From SQL to NoSQL Database?

Bharti Kumari
Bharti Kumari
Updated on 27-Jan-2023 812 Views

Introduction Migrating from a SQL to a NoSQL database is a significant undertaking that requires careful planning and strategizing. It's important to understand the differences between these two types of databases and to identify the specific use cases for which you will be using the NoSQL database. There are several different tools and techniques available for migrating data from a SQL to a NoSQL database, and it's important to carefully evaluate the pros and cons of each option to determine the best fit for your needs. Migrating from a SQL to a NoSQL database can be a significant undertaking and ...

Read More
Showing 40991–41000 of 61,297 articles
Advertisements