docker是在windows10下的wsl模式启动的
这是我的docker-compose.yml配置
version: '3'
services:
client:
image: local-sense-client
container_name: localscene-client
restart: always
privileged: true
sysctls:
- net.ipv4.tcp_timestamps = 0
networks:
- localscene
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
启动时报
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: open /proc/sys/net/ipv4/tcp_timestamps : no such file or directory: unknown
但是如果去掉
sysctls:
- net.ipv4.tcp_timestamps = 0
正常启动后,进去容器里面,是可以设置的
原来不能这么写
net.ipv4.tcp_timestamps = 0
需要改为
net.ipv4.tcp_timestamps=0