Docker: Difference between revisions

From Elvanör's Technical Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
(One intermediate revision by the same user not shown)
Line 5: Line 5:
* List of all containers: docker ps -a
* List of all containers: docker ps -a
* List of all images: docker image ls
* List of all images: docker image ls
* Create a new container (from an image): docker create jatzoo/jrivermc24
* Create a new container (from an image) and run a command in it: docker run -d --name=jrivermc24--stable --net=host -e VNCPASS=foobar -v /volume1/Public/music:/mnt/media jatzoo/jrivermc24:latest

Revision as of 16:11, 8 June 2019

This is a short tutorial to use Docker.

Basic commands

  • List of all containers: docker ps -a
  • List of all images: docker image ls
  • Create a new container (from an image): docker create jatzoo/jrivermc24
  • Create a new container (from an image) and run a command in it: docker run -d --name=jrivermc24--stable --net=host -e VNCPASS=foobar -v /volume1/Public/music:/mnt/media jatzoo/jrivermc24:latest