Detailed steps for installing Docker on aliyun CentOS 6.5
- 2020-05-17 07:06:48
- OfStack
Because the default kernel kernel version of ali cloud version 6.5 is 2.6, which is relatively low. After installing docker, it doesn't work.
Steps:
1. Update with command:
yum update
2. Install Docker. Ignore 500 words here...
3. Use the command to view IP:
ifconfig
You will see similar results:
eth0 Link encap:Ethernet HWaddr 00:16:3E:00:6B:5D
inet addr:10.169.127.193 Bcast:10.169.127.255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:103408201 errors:0 dropped:0 overruns:0 frame:0
TX packets:426317 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4734752352 (4.4 GiB) TX bytes:38914346 (37.1 MiB)
Interrupt:164
4. Use the command to run Docker:
docker -bip=10.169.127.193/24 -d
5. After running, you can use the command ifconfig to view the IP configuration:
docker0 Link encap:Ethernet HWaddr 86:AF:F8:0A:6F:FF
inet addr:10.169.127.193 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
There is an docker0 bridge card.
The end.
Thank you for reading, I hope to help you, thank you for your support of this site!