Difference between revisions of "Docker run ubuntu"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
* https://hub.docker.com/_/ubuntu | * https://hub.docker.com/_/ubuntu | ||
− | [[docker run -it ubuntu:rolling /bin/bash]] [[apt update]] | + | [[docker run -it ubuntu:rolling /bin/bash]] -c "[[apt update]]" |
[[docker run -it ubuntu:rolling /bin/bash]] | [[docker run -it ubuntu:rolling /bin/bash]] | ||
[[docker run -it ubuntu /bin/bash]] | [[docker run -it ubuntu /bin/bash]] |
Revision as of 16:33, 18 December 2023
docker run -it ubuntu:rolling /bin/bash -c "apt update" docker run -it ubuntu:rolling /bin/bash docker run -it ubuntu /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
See also
docker run [ -it | -d -it | --mount | --volume | --name | --env | --publish | --rm | --help ]
- Ubuntu, Ubuntu releases, snap, MAAS, PPA, Canonical Livepatch, Ubuntu Advantage, netplan, multipass, Landscape, Subiquity,
lsb_release
, Ubuntu MATE, Wayland
Advertising: