August 2020

You are currently browsing the monthly archive for August 2020.

最为我们熟悉的时间同步协议是NTP,配置起来相对简单,并不复杂;但是NTP实现的毫秒级的时间同步,在普通的网络中只是用来实现网络时间的同步管理。在5G网络中需要一种更为精确的时间同步协议,所以这个文章记录下微妙级的时间同步协议-PTP配置案例。

Read the rest of this entry »

Capture – > Options – > Select interface and type filer

Read the rest of this entry »

Docker 容器相关操作

#docker container run -d nginx
#docker container run -ti ubuntu  <<< 安全退出 Ctrl+P && Ctrl+Q
#docker container attach <CONTAINER ID>
#docker container exec -it <CONTAINER ID>
#docker ps -l //查看最新创建的容器
#docker ps -q //查看容器ID
#docker ps -a //查看所有容器, 包括已经停止的
#docker logs <CONTAINER ID>    //查看log
#docker container stop  //发送TERN信号等待10s后, 如果容器没停止发送KILL信号
#docker container kill  //发送KILL信号,容器立刻停止
#docker container rm    //删除已停止的容器, --force 强制删除
#docker container rm $(docker ps -aq) --force

#docker container inspect <CONTAINER ID>  //会打印出容器的详细信息
#docker container diff <CONTAINER ID>  //查看容器

#docker run -it busybox 

//容器之间共享namespace

#docker container run –d --name infra --ipc=shareable google/pause
#docker container run –tid --name busybox01 \
--pid=container:infra \
--ipc=container:infra \
--net=container:infra busybox
#docker container run –tid --name busybox02 \
--pid=container:infra \
--ipc=container:infra \
--net=container:infra busybox
Read the rest of this entry »

Tags: