mkdir -p /data/sdc/{data,libs,logs} docker run -itd --name sdc \ --restart=always -p 18630:18630 \ -v /data/sdc/data/:/data/ \ -v /data/sdc/libs/:/opt/streamsets-datacollector-3.22.3-0047/streamsets-libs/ \ -v /data/sdc/logs/:/logs/ \ streamsets/datacollector:3.22.3-0047-1069 dc docker exec -it -u root sdc bash # 删除在线账号 rm -rf /opt/streamsets-datacollector-3.22.3-0047/container-lib/streamsets-activation-no-trial-3.6.0.jar
#修改时区 sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories apk add --no-cache -U tzdata ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime echo "Asia/Shanghai" > /etc/timezone docker restart sdc #备份 cp -r /data/sdc/data/pipelines/ef153ced-c924-4327-af97-a6babea3810a/ ./pipelines/ cp -r /data/sdc/data/runInfo/ef153ced-c924-4327-af97-a6babea3810a/ ./data/runInfo/
我来说说