User Tools

Site Tools


Sidebar

Dan's Wiki

DokuWiki Instructions (local) DokuWiki Manual
Site Checker (Orphans Wanted)

Edit Sidebar

docker:start

This is an old revision of the document!


Docker

Cheat Sheet

CommandDescription
docker search ubuntuList of ubuntu images
docker container lsList containers that are running
docker container ls -aList all containers, running or not
docker createCreate a local image
docker create –name=foo -it ubuntu bash-i = interactive
-t = pseudo TTY
running bash when starting
docker start foo Start container running
docker attach fooAttach Standard In/Out to container
escape with Control-P Control-Q
Control-p Control-qEscapes from docker attach
docker logs fooShows the standard in/out from container that has run in the background
docker image lsList all images that are present/cached
docker rm fooRemove container
docker inspect fooInspect container - shows network
docker network lsShows networks
docker run <image> <command>Load and run a container

Troubleshooting

network is unreachable

when trying to run

docker run hello-world

Kept getting:

connect: network is unreachable

Solved problem by changing /etc/resolv.conf to

nameserver 8.8.8.8

Perhaps the usual 192.168.0.1 nameserver can't properly handle the docker registry server. Which is:

https://registry-1.docker.io/v2/library/hello-world/manifests/sha256:ac69084025c660510933cca701f615283cdbb3aa0963188770b54c31c8962493

[12/26/2023]

docker/start.1703615822.txt.gz · Last modified: 2023/12/26 18:37 by dwheele