How to install docker and portainer in kali

How to install docker and portainer in kali

With the emergence of docker, many services have gradually broken away from their dependence on hardware architecture. Many arm-structured hardware can also run x86 services. The speed of docker startup and deployment is also favored by geeks. I installed a kali on the Raspberry Pi 4B I bought myself. We all know that the Raspberry Pi is an arm-architecture CPU. I was going to deploy a nextcloud on it so I thought of docker.

Okay, let’s get to the command without further ado:

1. Install Docker and start Docker

sudo apt-get install docker
 
sudo systemctl start docker

2.Docker source acceleration (configure domestic sources)

sudo mkdir -p /etc/docker
sudo vi /etc/docker/daemon.json
 
{
    "registry-mirrors": ["http://hub-mirror.c.163.com"]
}

3. Install portainer graphical management interface

Because Docker is started by command and management is troublesome, we install a portainer container for graphical management

sudo docker pull portainer/portainer
 
sudo docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock --restart=always --name prtainer portainer/portainer

Here we map docker's port 9000 directly to the external port 9000 and then we can access it through 127.0.0.1:9000

The first access requires the configuration of the admin password

After configuration is complete, log in:

Here we can choose local, or remote. Here we take local as an example:

Then all the local docker images will appear here and we can manage them on them

4. Some commonly used portainer operations and configurations for docker containers are here Duplicate/Edit

Click the container you want to configure

Click Duplicate/Edit

Here are some configuration options for the container

Modify the mapping port here:

You can change the time zone here:

Volumes is to mount the directory in the container to the local. You can also mount it to the local volume here. If it is a directory, click Bind.

This is the command we gave above --restart=always to start the container and then start it by itself

I discovered that I can also restart the container through Portainer.

You can also download the container:

The above is the details of installing docker and portainer on kali. For more information about installing docker on kali, please pay attention to other related articles on 123WORDPRESS.COM!

You may also be interested in:
  • Deployment and Chinese translation of the docker visualization tool Portainer
  • Project practice of deploying Docker containers using Portainer
  • How to use Portainer to build a visual interface for Docker
  • Tutorial on using portainer to connect to remote docker
  • Detailed explanation of docker visualization graphics tool portainer

<<:  Detailed explanation of MySQL file storage

>>:  Summary of several submission methods of HTML forms

Recommend

Quickly solve the Chinese input method problem under Linux

Background: I'm working on asset reporting re...

XHTML 1.0 Reference

Arrange by functionNN : Indicates which earlier ve...

How to configure Basic Auth login authentication in Nginx

Sometimes we build a file server through nginx, w...

Detailed explanation of Docker container network port configuration process

Exposing network ports In fact, there are two par...

Detailed steps for completely uninstalling MySQL 5.7

This article mainly summarizes various problems o...

HTML fixed title column, title header table specific implementation code

Copy code The code is as follows: <!DOCTYPE ht...

Get a list of your top 10 most frequently used terminal commands in Linux

I think the commands I use most often are: Choice...

How to use border-image to implement text bubble border sample code

During the development activity, I encountered a ...

Front-end JavaScript Promise

Table of contents 1. What is Promise 2. Basic usa...

Three JavaScript methods to solve the Joseph ring problem

Table of contents Overview Problem Description Ci...

Detailed explanation of how to use Teleport, a built-in component of Vue3

Table of contents 1. Teleport usage 2. Complete t...

Example of how to create and run multiple MySQL containers in Docker

1. Use the mysql/mysql-server:latest image to qui...

Solution to the inconsistency between crontab execution time and system time

Preface In LINUX, periodic tasks are usually hand...