查看进程:docker ps

    查看日志:docker logs -f eicloud-api

    查看镜像:docker images

    将文件放入镜像目录:docker cp /home mongo27017:/dump

    将linux服务器上面文件复制到另一个目录:scp -r root@47.96.238.37:/usr/local/docker/nginx /usr/local/docker

    查询日志目录关键字:docker logs eicloud-api | grep port

    docker 关闭进程: docker stop eicloud-ovat docker rm -f eicloud-ovat

    查看应用端口:ps -ef |grep eicloud-biz

    docker 进入redis: docker exec -it d007e454feeb redis-cli

    如何查看docker容器的挂载目录:docker inspect container_name | grep Mounts -A 20

    linux vim操作提示:“Can’t open file for writing”或“operation not permitted”的解决办法
    sudo vi hosts
    linux查看内存:free
    linux查看资源占用
    一键关闭所有服务:docker stop $(docker ps -a | awk ‘{ print $1}’ | tail -n +2)
    重启docker:

    1. systemctl daemon-reload
    2. service docker restart

    重启服务:

    1. docker ps -a
    2. docker restart mysql-test

    查看docker日志:

    1. docker logs -f eicloud-api |grep "G20211103A06" |more

    查看docker 容器目录:

    1. docker inspect 5da58d096641 | grep Mounts -A 20

    删除容器:

    1. docker rm -f mysql

    删除镜像:

    1. docker rmi bbf6571db497

    重启服务器

    1. shutdown -r now