Download Ubuntu Docker Golang

Source: Internet
Author: User
Tags docker ps docker hub docker run
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

    1. Download Address: Http://www.ubuntu.org.cn/download/alternative-downloads. Version is 14.04.4

    2. Configuring the Process view favorite pages

    3. Operation with Mac ITerm ubuntu:ssh hostname@ip [-P port]
      SSH default port is 22
      SSH rainbow@192.169.240.131 Connection

    4. Installing Docker https://docs.docker.com/engine/installation/linux/ubuntulinux/
      Prerequisite:

      1. See if there is a apt-get, or upgrade: sudo apt-get update

      2. Installation: sudo apt-get install Apt-transport-https ca-certificates

Docker ubuntu container

Installing Docker:


  1. Ubuntu container image
  2. sudo apt-get update

  3. Docker ubuntu container run
  4. sudo apt-get install Docker-engine
    Error: timeout; cause: Turn over the wall; Workaround: View Step 3

  5. Access your own host with Daocloud:
    Curl-ssl Https://get.daocloud.io/docker | Sh

  6. Run ubuntu container on windows
  7. Exit Login Again

  8. View the status of Sudo service Docker status, showing Docker start/running instructions for installation success

  9. View Container docker PS; result: no content; reason: User not within Docker group, workaround: See Step 8

  10. View Container sudo docker PS; results: The root user viewed the content, confirming that the above guess is correct.

  11. 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.
  12. 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.

  13. Docker ps-a View all container contents, because the test image just exited, so Docker PS is not visible.

  14. Download golang:https://www.digitalocean.com/community/tutorials/how-to-install-go-1-6-on-ubuntu-14-04

    1. sudo apt-get update

    2. sudo apt-get-y upgrade

    3. 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.

    4. is too slow to download with a thunderbolt plus a later URL, and then copy it to Ubuntu

    5. 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.

    6. Unzip

    7. Remove old version of Go:sudo apt-get remove golang-go

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.