1. Introduction
1Panel is based on container management and deployment applications, all in Chinese, beautiful interface and simple operation.
The focus of this article is on the installation management of stand-alone containers using 1panel.
Current version. v1.9.1
Official website. Installation.
I'm using alma linux 9.
Enable SSH root login.
[root@admin ~]# echo 'permitrootlogin yes' >>/etc/ssh/sshd_config.d/01-permitrootlogin.conf[root@admin ~]# systemctl restart sshd.serviceInstall docker
yum install -y yum-utils official source yum-config-manager --add-repo Alibaba Cloud acceleration source yum-config-manager --add-repo install docker-ce docker-ce-cli containerdioInstallation attention.
By default, the IP address of the Docker NIC generated by the panel is 17217.x.x, if it conflicts with your CIDR block, please use a non-conflicting terminal to connect, install, and log in to the web to modify the NIC information.
2. After logging in to the panel, configure image acceleration in Container-Configuration-Basic Configuration.
1panel command-line tool.
usage: 1pctl [command] [args...1pctl --helpcommands: status Check the running status of the 1panel service start start 1panel service stop stop 1panel service restart restart 1panel service uninstall uninstall 1panel service user-info get 1panel user information listen-ip switch 1panel listen ip version view 1panel Version Info update 1Panel System Information reset 1Panel System Information restore 1Panel services and dataSecond, the main interface
Built-in app store.
Install the app interface.
* and databases.
Container management panel.
Schedule tasks.
Host management features.
File monitoring, endpoints, firewall configuration, process management, SSH management, etc.
System settings. Toolbox.
Panel configuration. 3. Container management
1. Deploy containers in the app store.
Such as uptime
Configure ports, public network access, and CPU memory quotas.
Installing.
The installation is complete. 1Panel automatically completes persistence management.
2. Manually deploy containers.
Such as uptime
Check the official website to see that the persistence directory of uptime is in the container/app/data
, so we need to manually configure the persistent volume.
Create a new storage volume.
Name Mirror Port Mapping Network Mount Volume.
Boot rules CPU memory.
The container is deployed.
Persistence testing.
1p-uptime.
Restart 1p-uptime
After the restart, the data still exists and is persisted normally.
Go to the container terminal.
Manage persistent volume files.
4. Miscellaneous
If your docker network card conflicts with the network.
You can delete the 1panel-network NIC and create a NIC with the same name in Container-Network.
5. Deploy containers
1、activemq
Pull the symptoma activemq:latest image.
Create a container. Name Mirror mapped port.
Restart Rule environment variables.
activemq_password=myactivemquserpassactivemq_username=myactivemquseractivemq_webadmin_password=testtestactivemq_webadmin_username=roosRunning normally.
6. Summary
It can replace the portainer docker container panel, which is more functional, so good!