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

Run docker in docker

RUN apt-get update 
  && apt-get install apt-transport-https ca-certificates 
  && echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list 
  && apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D 
  && apt-get update 
  && apt-get install -y docker-engine
Comment

PREVIOUS NEXT
Code Example
Shell :: creating new repository 
Shell :: helm install with values file 
Shell :: ubuntu what is my ip address 
Shell :: mac format drive for windows 
Shell :: boot pendrive windows cmd 
Shell :: install docker on linux 
Shell :: how to remove a vm in proxmox from terminal 
Shell :: imagemagick compare pdf 
Shell :: otu table tsv in biom 
Shell :: aws cli parse secretstring 
Shell :: linux while one line command 
Shell :: leave azure ad cmd 
Shell :: deno bundler 
Shell :: libsound2-dev missing 
Shell :: how to install unijoy in linux 
Shell :: ros dep install 
Shell :: npm install assemble script 
Shell :: commands for ssh 
Shell :: gdb value of type is more than max-value-size 
Shell :: ubuntu teeworlds 
Shell :: are trying to install ruby-2.7.0 on heroku-20. remote: ! remote: ! Ruby ruby-2.7.0 is present on the following stacks: remote: ! remote: ! - heroku-18 
Shell :: ionic 4 image zoom 
Shell :: install thefuck 
Shell :: flutter add const auto 
Shell :: use localhost for self signed cert 
Shell :: import fuzzywuzzy module jupyter notebook 
Shell :: how to sort unsorted file and to write it to a new file bash 
Shell :: clang format linux 
Shell :: ubuntu stacer review 
Shell :: k8s rollout 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =