TL;dr

docker run examples

phpmyadmin

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

docker network create some-network;

docker run -d --restart always --network some-network \
--name phpmyadmin1 \
-p 11980:80 \
-e PMA_ARBITRARY=1 \
phpmyadmin/phpmyadmin:5.0.2;

docker run -d --restart always --network some-network \
--name=mysql1 \
-p 13306:3306 \
-e MYSQL_ROOT_PASSWORD=abc123456 \
mysql:5.7.29;

docker run -d --restart always --network some-network \
--name=adminer1 \
-p 11981:8080 \
adminer:4.7.6;


docker rm -f phpmyadmin1 mysql1 adminer1

registry

1
2
3
4
5
docker run -d -p 5000:5000 --restart always --name registry -v /tmp/registry:/var/lib/registry registry:2.7

docker pull debian:10
docker tag debian:10 localhost:5000/debian:10
docker push localhost:5000/debian:10

tomcat

1
2
3
4
5
docker run -it --rm \
--name tomcat2 \
-p 8088:8080 \
--env JAVA_OPTS='-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true' \
tomcat:9.0.34-jdk14-openjdk-buster

gitbook

1
2
git clone https://github.com/fwhezfwhez/test_gitbook.git book
docker run -it --rm --name gitbook -v $(pwd)/book:/srv/gitbook -p 14000:4000 -p 35729:35729 fellah/gitbook:3.2.1

mdbook

1
2
3
4
cd /path/to/book
docker run --rm -v $(pwd):/data -u $(id -u):$(id -g) -it hrektts/mdbook mdbook init
docker run --rm -v $(pwd):/data -u $(id -u):$(id -g) -it hrektts/mdbook mdbook build
docker run --rm -p 3000:3000 -p 3001:3001 -v $(pwd):/data -u $(id -u):$(id -g) -it hrektts/mdbook mdbook serve -p 3000 -n 0.0.0.0
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# GitBook 使用 SUMMARY.md 文件作为书籍的目录结构,可以用来制作书籍目录。


# Summary
* [Introduction](README.md)
* Part I
    * [从命令行进行测试](Chapter1/CommandLine.md)
    * [Monkey](Chapter1/Monkey.md)
    * [monkeyrunner 参考](Chapter1/MonkeyrunnerReference.md)
        * [概览](Chapter1/MonkeyrunnerSummary.md)
        * [MonkeyDevice](Chapter1/MonkeyDevice.md)
        * [MonkeyImage](Chapter1/MonkeyImage.md)
        * [MonkeyRunner](Chapter1/MonkeyRunner.md)
* Part II
    * [Introduction](Chapter2/c1.md)
    * [Introduction](Chapter2/c2.md)
    * [Introduction](Chapter2/c3.md)
    * [Introduction](Chapter2/c4.md)