This is a creation in Article, where the information may have evolved or changed.
The text of this text connection is: http://blog.csdn.net/freewebsys/article/details/51093850 not allowed to reprint without the Bo master.
Bo main address is: Http://blog.csdn.net/freewebsys
1, about CoreOS
Docker is very fire, but it's better to run the system or install a CoreOS.
After all, it is professional to do virtual operating system. There's no seven or eight bad things up there.
CentOS7 above also supports Docker, just as a RPM installation, looking for professional people to do professional things.
2, download and install
Download the VirtualBox image file directly, create a virtual machine, and then import it.
Download Image address:
http://stable.release.core-os.net/amd64-usr/current/
After importing the image, do not worry when you start, modify the Start command:
After entering grub boot boot, press "E key" to modify.
Add a row of parameters after the start command
console=tty0 console=ttyS0 coreos.autologin=tty1 coreos.autologin=ttyS0
This allows you to login without a password, but this is a temporary modification of the program, but also need to enter the operating system to modify the password. The restart is useless.
Then you can log in normally:
Change Password After login:
sudo passwd core
Restart again to use the core user login.
This method is the simplest and most effective.
3. Turn on remote access
sudo systemctl enable sshdsudo systemctl start sshd
The default boot starts the remote service. In the network configuration inside the VirtualBox, set up port forwarding.
Forward the SSH22 port to the local 2222 port.
Because the Mac looks like 22 local ports are inaccessible. You can log in again using SSH.
3, set up the registration server
First register in Https://dashboard.daocloud.io/mirror, then you can use the Daocloud service.
Modify the parameters inside the CoreOS:
echo'DOCKER_OPTS="--registry-mirror=http://xxxxxx.m.daocloud.io"'
Note that you can only modify the flannel_docker_opts.env configuration file here because the Docker.service file is read-only.
Then start the Docker service:
sudo systemctl start docker
So register on the, download speed whining fast. Test Dokcer Pull Tomcat
4, summary
The text of this text connection is: http://blog.csdn.net/freewebsys/article/details/51093850 not allowed to reprint without the Bo master.
Bo main address is: Http://blog.csdn.net/freewebsys
CoreOS is the basis for using Docker, and the system consumes very little resources.
If you want to use good docker, learn CoreOS well.
CoreOS is not CentOS, is a specialized container operating system, the system occupies less resources, efficient.
At the same time, the Daocloud registry of Docker is configured, and the image download speed is fast.