This is a creation in Article, where the information may have evolved or changed.
Ubuntu plugin container
Download Ubuntu Tutorials
Docker create ubuntu 16.04 container
-
Download Address: Http://www.ubuntu.org.cn/download/alternative-downloads. Version is 14.04.4
-
Configuring the Process view favorite pages
-
Operation with Mac ITerm ubuntu:ssh hostname@ip [-P port]
SSH default port is 22
SSH rainbow@192.169.240.131 Connection
-
Installing Docker https://docs.docker.com/engine/installation/linux/ubuntulinux/
Prerequisite:
-
See if there is a apt-get, or upgrade: sudo apt-get update
-
Installation: sudo apt-get install Apt-transport-https ca-certificates
Docker ubuntu container
Installing Docker:
- Ubuntu container image
-
sudo apt-get update
- Docker ubuntu container run
-
sudo apt-get install Docker-engine
Error: timeout; cause: Turn over the wall; Workaround: View Step 3
-
-
Access your own host with Daocloud:
Curl-ssl Https://get.daocloud.io/docker | Sh
- Run ubuntu container on windows
-
Exit Login Again
-
-
View the status of Sudo service Docker status, showing Docker start/running instructions for installation success
-
-
View Container docker PS; result: no content; reason: User not within Docker group, workaround: See Step 8
-
-
View Container sudo docker PS; results: The root user viewed the content, confirming that the above guess is correct.
-
- You need to add users to the Docker group, sudo usermod-ag Docker $USER, and then perform Docker PS, where you can see the content.
-
-
Docker Run Hello-world
(After adding users to the Docker group, there is no need to add sudo here) to download a test image
To generate this message, Docker took the following steps:1. The Docker client contacted the Docker daemon.2. The Docker daemon pulled the "Hello-world" image from the Docker hub.3. The Docker daemon created a new container from this image which runs the executable that produces the output is Curre ntly reading.4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.
-
-
Docker ps-a View all container contents, because the test image just exited, so Docker PS is not visible.
-
-
Download golang:https://www.digitalocean.com/community/tutorials/how-to-install-go-1-6-on-ubuntu-14-04
-
sudo apt-get update
-
sudo apt-get-y upgrade
-
sudo curl-o https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz: Download Golang compressed package,-O Indicates that all downloaded content is placed in a later file name. Curl means that you get the page that is pointing to the next address, whether it's a file or a picture, which you can download locally.
-
is too slow to download with a thunderbolt plus a later URL, and then copy it to Ubuntu
-
SCP go1.6.darwin-amd64.tar.gz rainbow@192.168.240 .131:
Before the file that represents the copy, followed by a path, the colon is used to separate the IP and the folder, representing the copy to the user Rainbow Home directory, if the last is:/
to copy to the root directory.
-
Unzip
-
Remove old version of Go:sudo apt-get remove golang-go