Docker

From Han Wiki
Revision as of 07:49, 31 August 2023 by Mhan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Jump to navigation Jump to search

Copy files to/from container

$ docker cp myfile.txt container_name:/srv/www/folder/

List images

$ docker images

Tag an image

$ docker tag 7d9495d03763 maryatdocker/docker-whale:latest

Log-in for push/pull operations

$ docker login --username=username --email=joe@mosh.com

Push image

$ docker push maryatdocker/docker-whale

Remove an image

$ docker rmi -f imageid

Resources