dock code example
Example 1: docker
docker ps
docker run
docker create
dokcer exec
docker volume
docker network
docker rm
docker images
docker rmi
docker build
docker push
docker pull
docker commit
Example 2: docker
cheat sheet
https://github.com/lifeeric/docker-cheat-sheet
Example 3: docker
docker ps
docker create
docker run
dokcer exec
docker volume
docker network
docker rm
docker images
docker rmi
docker build
docker push
docker pull
docker commit
Example 4: docker
FROM risingstack/alpine:3.3-v4.2.6-1.1.3
COPY package.json package.json
RUN npm install
COPY . .
CMD ["npm","start"]
Example 5: docker
$ docker network create -d overlay my-multihost-network
Example 6: docker
docker run -d -n riscv -p 6080:80 -e USER=riscv -e PASSWORD=riscv -e RESOLUTION=1920x1080 -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc