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
This article shares the specific code of JavaScri...
Flexible layout (Flexbox) is becoming increasingl...
I once encountered an assignment where I was give...
Step 1: Enter the directory: cd /etc/mysql, view ...
Explain the whole process of CLion from scratch. ...
JSON data is displayed and formatted on the HTML ...
When using HTML tables, we sometimes need to chan...
Preface Recently, I have been busy writing a smal...
The operating environment of this tutorial: Windo...
Table of contents background accomplish Supplemen...
At work, we often need remote servers and often e...
Perfect solution to VMware black screen after Mac...
Table of contents 1. Open source warehouse manage...
mysql copy one table column to another table Some...
The <tfoot> tag is used to define the style...