Docker: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
m Mhan moved page Docker notes to Docker: better name
No edit summary
Line 1: Line 1:
Copy files to/from container
<source lang="console">
$ docker cp myfile.txt container_name:/srv/www/folder/
</source>
List images
List images



Revision as of 09:04, 7 December 2019

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