docker部署在jenkins上:
cd /www/wwwroot/laravel-docker
git pull
if [ $? -ne 0 ]; then
echo “============================git pull failed==================================”
exit 1
else
echo “===========================git pull succeed==================================”
fi
docker-comp[……]
Read more
查看docker镜像:
docker images
运行镜像:
docker container run hello-world
# 列出本机正在运行的容器
$ docker container ls
# 列出本机所有容器,包括终止运行的容器
$ docker container ls –all
Docker-compose的路径位置:
/usr/bin/docker-compose
容器内获取宿主机的IP:
getent hosts host.docker.internal
容器的地址:http://docker.for.mac.localhost:8088/tes[……]
Read more
启动redis:
/usr/local/redis/bin/redis-server /usr/local/redis/etc/redis-6379.conf
测试链接方法一:
nc命令提示没有的话,可以安装一个
nc 127.0.0.1 6379
然后输入ping

方式2:
redis-cli -h 127.0.0.1 -a ABCabc@01 -n 1
查看是否有数据:keys *
参考链接:https://blog.csdn.net/qq_39715000/article/details/120696149
[……]
Read more