docker run command on container
sudo docker exec -it <container name> <command>
docker run command on container
sudo docker exec -it <container name> <command>
docker run
# DOCS Docker run (basic usage)
-d :-d=false: Detached mode: Run container in the background, print new container id
-t : Allocate a pseudo-tty
-i : Keep STDIN open even if not attached
-p : publicPort:InsideDockerPort - 8456:443
--restart <always/no/on-failure/unless-stopped>
--name ContainerName
--mount type=bind,source=/route/to/path/in/host,target=/route/to/path/inside/docker
Example:
docker run -d -it --restart always --name ContainerName -p 8456:443 --mount type=bind,source=/home/example/path/logs,target=/app/logs imagename:latest
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us