Home > other >  Ali cloud run docker solution
Ali cloud run docker solution

Time:09-27

# BRCTL addbr mydockerbridge
# the IP addr add 192.168.1.1/24 dev mydockerbridge
# IP link set dev mydockerbridge up
# docker - d - b mydockerbridge

Solve the problem of ali docker running on cloud, you need the actual input on the command line is more than a few lines of

Attached below me in the problems encountered in the use of


/root @ iZ28rg9439eZ ~ # BRCTL addbr mydockerbridge 
/root @ iZ28rg9439eZ ~ # IP addr add 192.168.1.1/24 dev mydockerbridge

In order to see whether successfully adding mydockerbridge
 
[code=text] bridge, the name bridge id STP enabled interfaces
8000.000000000000 no mydockerbridge

/root @ iZ28rg9439eZ ~ # IP link set dev mydockerbridge up 
/root @ iZ28rg9439eZ ~ # docker - d - b mydockerbridge
2014/08/19 09:53:10 WARNING: You are running the Linux kernel version 2.6.32-431.23.3. El6. X86_64, which took a be unstable running docker. Both Please upgrade your kernel to 3.8.0.
Daemon: 2014/08/19 09:53:10 docker 63 fe64c/1.0.0 1.0.0; Execdriver: native; Graphdriver:
C086e [608] + job initserver ()
[608 c086e initserver ()] Creating server
C086e [608] + job serveapi (Unix:///var/run/docker. The sock)
On Unix 2014/08/19 09:53:10 Listening for HTTP (/var/run/docker. The sock)
C086e [608] + job init_networkdriver ()
C086e [608] - job init_networkdriver ()=OK (0)
Loading containers: : done.
[608 c086e initserver ()] Creating pidfile
[608 c086e initserver ()] Setting up signal traps
C086e [608] - job initserver ()=OK (0)
C086e [608] + job acceptconnections ()
C086e [608] - job acceptconnections ()=OK (0)

At that time, you need to open another command window, or permanent and you let the above process, but I temporarily do not need here, so the other open a:
/root @ iZ28rg9439eZ ~ # sudo service docker start 
Starting docker: [OK]
/root @ iZ28rg9439eZ ~ # sudo the chkconfig docker on
/root @ iZ28rg9439eZ ~ # sudo docker pull centos: latest
/root @ iZ28rg9439eZ ~ # sudo docker pull centos: latest
Pulling the repository centos
B157b77b1a65: Download complete 511136 ea3c5a: Download complete
34 e94e67e63a: Download complete
/root @ iZ28rg9439eZ ~ # sudo docker images centos
The REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
Centos latest b157b77b1a65 2 weekes line 243.7 MB

Success down the centos
/root @ iZ28rg9439eZ ~ # sudo docker run - I - t centos/bin/bash 
Bash - 4.2 # ls
Bin etc lib lost + found MNT proc run selinux sys usr
Dev home lib64 media opt root sbin SRV TMP var

 bash - 4.2 # PWD 

Bash - 4.2 # exit
The exit
/root @ iZ28rg9439eZ ~ #



//this solution from CSDN Docker community

CodePudding user response:

The kernel is 2.6, the docker running stable?

CodePudding user response:

reference 1st floor stonefeng response:
kernel is 2.6, the docker running stable?

To be able to run a stable

CodePudding user response:

How to make the process execution permanently, please? Thank you very much?

The
Quote: refer to the original poster u010141162 response:


 
[608 c086e initserver ()] Creating pidfile
[608 c086e initserver ()] Setting up signal traps
C086e [608] - job initserver ()=OK (0)
C086e [608] + job acceptconnections ()
C086e [608] - job acceptconnections ()=OK (0)

At that time, you need to open another command window, or permanent and you let the above process, but I temporarily do not need here, so the other open a:

CodePudding user response:

Good good, good things

CodePudding user response:

The
reference 3 floor conan1233 response:
could you tell me how to make the process execution permanently? Thank you very much?

The
Quote: refer to the original poster u010141162 response:


 
[608 c086e initserver ()] Creating pidfile
[608 c086e initserver ()] Setting up signal traps
C086e [608] - job initserver ()=OK (0)
C086e [608] + job acceptconnections ()
C086e [608] - job acceptconnections ()=OK (0)

At that time, you need to open another command window, or permanent and you let the above process, but I temporarily do not need to be here, so the other open a:

Docker run - t - I - d centos/bin/bash, 3-d can background, can use the docker attach into the container, in fact you can also use other process management tools such as Supervisord, you can see here, the more detail the whole process of the docker http://aotu.io/notes/2016/02/27/docker/experience
  • Related