Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: grep -c flag 
Shell :: wsl ohmyzsh theme not working 
Shell :: powershell get unique without sort 
Shell :: executar python como parametro 
Shell :: ubuntu bluetooth config file 
Shell :: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.ccc.notification signatures do not match previously installed version; ignoring!] 
Shell :: swipl gui mac 
Shell :: oracle cloud destination unrechable wireshark 
Shell :: pipe list to rm ubuntu 
Shell :: scale variable with bc 
Shell :: git commit id 7 characters 
Shell :: Install solidity complier 
Shell :: Install Lumen CSV Reader package 
Shell :: how to install celluloid in kali 
Shell :: autostart syncthing (replace myuser with your username) 
Shell :: shorten terminal prompt linux 
Shell :: powershell interactive menu 
Shell :: How to install ctlptl 
Shell :: https local 
Shell :: easter egg bash 
Shell :: mac find command printf 
Shell :: how to install MTAG IN LINUX 
Shell :: powershell change windows policy 
Shell :: fix kali linux asking to restart services 
Shell :: delete every file in directory mac 
Shell :: sed excape all special charators 
Shell :: Let NetworkManager manage all devices on wsl 2 
Shell :: ubuntu 21.04 install gnome tweak tool 
Shell :: pre-recivice hook deline push gitlab 
Shell :: mkdir NewDirectory and cd into it 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =