Technologies
# Docker Shell-Commands
Here is a list of the most important docker commands.
# Docker build Container
flag | definition |
---|
-t | give image a name |
-f | finds dockerfile in specific folder |
# Docker run Container
flag | definition |
---|
-p | port forwarding |
-it | enter internal terminal |
-d | detached - allows writing in cmd |
-v | defines a volume |
—rm | remove container, after it’s stopped |
—name | give container a name |
# Docker basic Commands
# Dockerfile
Example of a basic dockerfile
(node)
Example from the .NET-world