最近在做运维操作时,经常百度linux命令。
感觉对linux命令不够熟悉,在此记录一些常用到的linux命令。
Linux
cp ./my.conf /usr/local/ cp为复制命令 将当前目录下的my.conf 文件符合到/usr/local/目录下
Docker
service docker start 启动docker服务
docker info 查看docker信息
docker search <imageName> 查找远程镜像xxx
docker images 查看已拥有的docker镜像
docker ps -a 查看所有docker容器(包括未运行的)
docker ps 查看运行中的docker容器
docker rm <containerId> 删除指定的docker容器
docker stop <containerId> 停止指定的docker容器
docker start <containerId> 启动已存在的docker容器
docker network ls 查看docker内的所有网段