Create Virtual Machine Ubuntu on Azure

Connect Ubuntu

sansae@win10pro-worksp:/mnt/c/Users/sansae/Documents/workspaces$ ssh sansae@52.141.35.146
The authenticity of host '52.141.35.146 (52.141.35.146)' can't be established.
ECDSA key fingerprint is SHA256:/B/42rOLCrPuMrfHouIgsctsH7dSAjgbOgk7bouoajA.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '52.141.35.146' (ECDSA) to the list of known hosts.
sansae@52.141.35.146's password:
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1046-azure x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Tue Apr 27 05:02:04 UTC 2021

  System load:  0.39              Processes:           130
  Usage of /:   4.5% of 28.90GB   Users logged in:     0
  Memory usage: 2%                IP address for eth0: 10.0.0.4
  Swap usage:   0%

 * Pure upstream Kubernetes 1.21, smallest, simplest cluster ops!

     https://microk8s.io/

0 packages can be updated.
0 of these updates are security updates.



The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

sansae@sansaeubuntu:~$

Install Docker on Ubuntu

  • https://docs.docker.com/engine/install/ubuntu/
  • sansae@sansaeubuntu:~$ docker version
    Client: Docker Engine - Community
     Version:           20.10.6
     API version:       1.41
     Go version:        go1.13.15
     Git commit:        370c289
     Built:             Fri Apr  9 22:46:01 2021
     OS/Arch:           linux/amd64
     Context:           default
     Experimental:      true
    
    Server: Docker Engine - Community
     Engine:
      Version:          20.10.6
      API version:      1.41 (minimum version 1.12)
      Go version:       go1.13.15
      Git commit:       8728dd2
      Built:            Fri Apr  9 22:44:13 2021
      OS/Arch:          linux/amd64
      Experimental:     false
     containerd:
      Version:          1.4.4
      GitCommit:        05f951a3781f4f2c1911b05e61c160e9c30eaa8e
     runc:
      Version:          1.0.0-rc93
      GitCommit:        12644e614e25b05da6fd08a38ffa0cfe1903fdec
     docker-init:
      Version:          0.19.0
      GitCommit:        de40ad0
    sansae@sansaeubuntu:~$

Run Prometheus on Docker

sansae@sansaeubuntu:~$ docker run --name prometheus -d -p 9090:9090 prom/prometheus
Unable to find image 'prom/prometheus:latest' locally
latest: Pulling from prom/prometheus
e5d9363303dd: Pull complete
3430c2c42129: Pull complete
7631b5d56c90: Pull complete
343e06690c48: Pull complete
dc32e90574e9: Pull complete
a6d5d01cd646: Pull complete
832428480103: Pull complete
83e775ff1768: Pull complete
1ec97f567836: Pull complete
0cdf5b797911: Pull complete
eb7d1f2acc9f: Pull complete
541ffe559bd5: Pull complete
Digest: sha256:38d40a760569b1c5aec4a36e8a7f11e86299e9191b9233672a5d41296d8fa74e
Status: Downloaded newer image for prom/prometheus:latest
b9d0d4f676ba5f691596369675cf8adcf773a785dada9026fac295bb3cfa6300
sansae@sansaeubuntu:~$ curl ifconfig.me
52.141.35.146

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.