1.docker install nginx:
docker install Nginx is very simple, you can refer to Baidu articles, or reference docker install MySQL: https://www.cnblogs.com/jonrain0625/p/11306412.html
2. After installation of the container into the docker:
Execute the command: docker exec -it container id bash. Note that the container must be opened in order to enter.
3. Modify index.html nginx's an example:
1. Go to the directory where the index: cd usr / share / nginx / html
2. Edit index.html, the focus here will complain here, as follows
3. no vim command prompt, install this command: APT- GET install vim
If unsuccessful appear
Update apt-get 命令:
apt-get update
4. Update command after the implementation of the third step: APT- GET install vim
5.vim instruction introduced successfully, the / usr / share / nginx / html, execute: vim index.html
3. External authentication request: