According to the document on the official website of rancher 2.4, only one Linux host is required. Remember that a single node rancher server can be quickly deployed. Of course, this can only be used for testing. Deployment is very convenient. Just start dcoker on the host, and then start a container:
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
After the test, it is found that the container is constantly restarted after startup, and there is no way to enter the UI, prompting a network error.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bfd5c52a1ce7 rancher/rancher "entrypoint.sh" 12 hours ago Restarting (1) 3 seconds ago elated_heisenberg
View log:
[root@k8s-node02 ~]# docker logs --tail 3 bfd5c52a1ce7
ERROR: Rancher must be ran with the --privileged flag when running outside of Kubernetes
ERROR: Rancher must be ran with the --privileged flag when running outside of Kubernetes
ERROR: Rancher must be ran with the --privileged flag when running outside of Kubernetes
If an error is found, it is said that — privileged is required to increase privileges
turn off the lifting appliance — privileged to try:
docker run -d --restart=unless-stopped --privileged -p 80:80 -p 443:443 rancher/rancher
Found it
Read More:
- Error failed to build IOS project. We ran “xcodebuild” command but it exited wit
- The deployment of etcd storage and flannel network configuration for kubernetes / k8s multi node deployment
- Kali Linux network manager needs to be running
- Ngnix+gunicorn+Flag project deployment in Ubuntu
- Error in the latest version of ffmpeg: ‘codec’_ FLAG_ GLOBAL_ Header ‘undeclared identifier solution
- Solve the problem of flag error valueerror: View function did not return a response
- Idea for Mac setting JVM running parameters to solve running stuck problem
- In Linux shell script, about the commonly used flag [- EQ, GT..] in test and if judgment
- File C:\Users\admin\Documents\WindowsPowerShell\profile.ps1 cannot be loaded because running scripts
- Error running app:Instant Run requires Tools | Android Enable ADB integration‘ to be enabled.
- When SSM + Maven project is running, it is prompted that org.springframework.web.servlet.dispatcherserservlet cannot be found
- When MySQL is running, the server suddenly goes down, which causes Mysql to be unable to restart
- Vs2013 error msb8031 solution today ran a MFC program, found that the error: error msb8031: building an MFC project for a non-U
- Git prompts another git process sees to be running in this repository, e.g. an editor opened by
- error C2057: expected constant expression (Can the size of an array in C language be defined when the program is running?)
- Solve the problem of error running xxxapplication command line is too long when compiling and running IntelliJ idea
- Idea running error running ‘application’: solution to command line is too long
- Docker installation sysdig error: running DKMS build failed, could’t find / var / lib / DKMS / sysdig / 0.27.1/build/ make.log
- This error may also indicate that the docker daemon is not running.
- An error is reported when the jeecg boot project connects to the MySQL database running on docker