Please enable JavaScript.
Coggle requires JavaScript to display documents.
Docker (Dockerfile (FROM image:tag, COPY source:dest, RUN command args,…
docker
run
[OPTIONS] IMAGE:[TAG] [CMD] [ARGS...]
OPTIONS
--name [instance-name] (naming)
-v SOURCE:DEST (mapping)
-d (detach)
-i (interactive)
-t (tty)
-p host:port:docker-port (port mapping)
--network docker-network (attach interface)
--volumes-from instance (use others volume mapping)
--restart onfailure:number | always
ps
image
build
[OPTIONS] PATH
OPTIONS
-t name:tag (image name)
--no-cache (disable cache)
-m memory (memory limit)
-f dockerfile (specific file)
network
create NETWORK
-d driver
connect NETWORK INSTANCE
--alias name-alias
disconnect NETWORK INSTANCE
swarm
init
join-token manager | worker
join docker-manager:2377 --token token
service
create
IMAGE:...
--name service-name
--replicas replica-number
scale
SERVICE=NUMBER
Dockerfile
FROM image:tag
COPY source:dest
RUN command args
EXPOSE port1 port2-port5
CMD ["commaand", "arg1", "arg2", ...]
WORKDIR directory
ONBUILD command
.dockignore == .gitignore