1. Use the following command to set the ssh password when making dockerfileRUN echo "root:root" | chpasswd 2. Now you need to change the root password in the container after the container is generatedThe docker exec -it centos7.5 root:newpassword | chpasswd command was executed successfully, but the password update failed. The correct way is as follows: PASS='newpassword ' && echo -e "KaTeX parse error: Expected 'EOF', got '\n' at position 5: PASS\̲n̲PASS" | docker exec -i centos7.5 Supplement: What is the password after docker pull centos? 【Xiaobaitiankeng】 For the record, the first time I used Baota's docker to pull centos8, when I started the centos8 container, I was prompted to enter a password. I was confused at the time. What was the password? After an hour of work, I finally figured out how to do it. I just ssh to my server and then run docker exec -it your container name/bin/bash This will take you directly into the new container. So where is the name of your container? See the picture below So, I directly execute docker exec -it funny_tesla /bin/bash You can enter the centos8 container and do whatever you want. . End~ The above is my personal experience. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. If there are any mistakes or incomplete considerations, please feel free to correct me. You may also be interested in:
|
<<: Summary of some common methods of JavaScript array
>>: The difference between html Frame, Iframe and Frameset
01. VMware Workstation Pro 15 Download Download: ...
Table of contents 1 Introduction 2 Trigger Introd...
1. Apache 2.4.41 installation and configuration T...
1. Environment: MySQL-5.0.41-win32 Windows XP Pro...
MySQL 8.0.3 is about to be released. Let’s take a...
An n-digit verification code consisting of number...
This article mainly introduces why v-if and v-for...
Introduction to Jib Jib is a library developed by...
We all know that the commonly used positioning me...
It has to be said that a web designer is a general...
Let's make a simple 3D Rubik's Cube today...
Table of contents Preface Component Introduction ...
Table of contents Is setState synchronous or asyn...
Table of contents 1. Rendering 2. Bind data and a...
At first I thought it was a speed issue, so I late...