Difference between revisions of "Docker run ubuntu"

From wikieduonline
Jump to navigation Jump to search
 
(39 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Draft}}
+
{{lc}}
 +
* https://hub.docker.com/_/ubuntu
  
  docker run ubuntu
+
  [[docker run -it ubuntu:rolling /bin/bash]] -c "[[apt update -qqq]] && [[apt upgrade -qqq -y]] && bash"
 +
[[docker run -it ubuntu:rolling /bin/bash]]
 +
[[docker run -it ubuntu /bin/bash]]
 +
 
 +
docker run --name mytest -p 22:22 -it ubuntu:rolling /bin/bash
 +
[[docker run --name yourubuntuname -it ubuntu:rolling /bin/bash]] [[apt update]]
 +
 
 +
[[docker run]] [[ubuntu]]
 
  Unable to find image 'ubuntu:latest' locally
 
  Unable to find image 'ubuntu:latest' locally
 
  latest: Pulling from library/ubuntu
 
  latest: Pulling from library/ubuntu
Line 9: Line 17:
 
  Digest: sha256:c95a8e48bf88e9849f3e0f723d9f49fa12c5a00cfc6e60d2bc99d87555295e4c
 
  Digest: sha256:c95a8e48bf88e9849f3e0f723d9f49fa12c5a00cfc6e60d2bc99d87555295e4c
 
  Status: Downloaded newer image for ubuntu:latest
 
  Status: Downloaded newer image for ubuntu:latest
 +
 +
[[docker run -it]] ubuntu /bin/bash
 +
[[docker run -it]] ubuntu:[[latest]] /bin/bash
 +
[[docker run -it]] ubuntu:[[rolling]] /bin/bash
 +
[[docker run -it]] --name my-ubuntu ubuntu /bin/bash
  
  
 +
[[apt update && apt install]] [[lsb-release]] [[vim]] [[sudo]] -y && [[lsb_release -a]]
  
 +
== Related terms ==
 +
* <code>[[docker start]]</code>
 +
* <code>[[docker run alpine]]</code>
 +
* <code>[[docker run redhat]]</code>
 +
* <code>[[unminimize]]</code>
 +
* <code>[[docker run -it]] --name mytest registry.access.redhat.com/ubi8/[[ubi]]:8.1 bash</code>
 +
* <code>[[apt install openssh-server]]</code>
 +
* <code>[[kubectl run ubuntu]]</code>
  
 
== See also ==
 
== See also ==
* {{Docker}}
+
* {{docker run}}
 
* {{Ubuntu}}
 
* {{Ubuntu}}
 
  
 
[[Category:Docker]]
 
[[Category:Docker]]

Latest revision as of 11:36, 14 March 2024

docker run -it ubuntu:rolling /bin/bash -c "apt update -qqq && apt upgrade -qqq -y && bash"
docker run -it ubuntu:rolling /bin/bash
docker run -it ubuntu /bin/bash
docker run --name mytest -p 22:22 -it ubuntu:rolling /bin/bash
docker run --name yourubuntuname -it ubuntu:rolling /bin/bash apt update
docker run ubuntu
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
da7391352a9b: Pull complete
14428a6d4bcd: Pull complete
2c2d948710f2: Pull complete
Digest: sha256:c95a8e48bf88e9849f3e0f723d9f49fa12c5a00cfc6e60d2bc99d87555295e4c
Status: Downloaded newer image for ubuntu:latest
docker run -it ubuntu /bin/bash
docker run -it ubuntu:latest /bin/bash
docker run -it ubuntu:rolling /bin/bash
docker run -it --name my-ubuntu ubuntu /bin/bash


apt update && apt install lsb-release vim sudo -y && lsb_release -a

Related terms[edit]

See also[edit]

Advertising: