Docker: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
mNo edit summary
Tag: visualeditor
m categories
Tag: visualeditor
Line 40: Line 40:


[[Category:Development]]
[[Category:Development]]
[[Category:Container]]
[[Category:Docker]]

Revision as of 15:19, 18 April 2023

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