Problem description: After executing docker run -p 19918:19918/tcp -v /etc/localtime:/etc/localtime Docker ps shows that port 19918 and another port are started, and no execution program is found in the registry. Problem Analysis: The other port started was configured before. It is speculated that the previous container was executed in addition to the project just built during run. Solution: View the containers in docker images and delete the same and two executed port containers. Execute again and it shows success! Summarize: Follow naming standards and remove unnecessary containers in a timely manner. Additional knowledge: Run multiple different processes when docker is started, install ssh, and start running at the same time as jenkins when starting docker Recently, when I was working on a Jenkins slave node, I needed to install ssh to establish a connection with the master. At this time, the slave needed to install the ssh service, but after the node was restarted, I had to manually start ssh. To avoid trouble, run ssh and jenkins services when you want to start 1. When docker is running, starting ssh requires root privileges, otherwise you will not have permission to run many things on sshd Therefore, when running docker, add a parameter --user root
2. Modify the /usr/local/bin/jenkins.sh startup file and add the following line
If it is your own program, you can redirect the log to your own log file The above article on solving the problem of starting two processes occupying different ports when running docker is all I have to share with you. I hope it can give you a reference, and I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Object.entries usage you don't know in JavaScript
>>: How to create a test database with tens of millions of test data in MySQL
Environmental Statement Host OS: Cetnos7.9 Minimu...
Sometimes it is slow to download large network fi...
Table of contents 1. Problem 2. Solution 1. Decla...
Table of contents 1. What is a template string? 2...
Sample code: import java.util.Random; import java...
Recent requirements: Global loading, all interfac...
1. Clustered Index Table data is stored in the or...
Table of contents Overview 1. Overview of input a...
Table of contents Preface Descriptors Detailed ex...
Table of contents Union query 1. Query the ID and...
I installed a virtual machine a long time ago, an...
There are two types of web page box models: 1: Sta...
Diversifying website layouts is our front-end spe...
Recently, I encountered the need to embed a player...
We know that when using HTML on NetEase Blog, we ...