goodlook0123 2022-02-13 08:16:06 阅读数:941
Get into docker The container copies files to the host
docker cp onlyoffice-community-server:/etc/nginx/nginx.conf /home/
among onlyoffice-community-server It's the name of the container ,/etc/nginx/nginx.conf by docker The path of /home Path to the host
If the host copies files to the container
docker cp /home/nginx.conf onlyoffice-community-server:/etc/nginx/
among onlyoffice-community-server It's the name of the container ,/etc/nginx/ by docker The path of /home/nginx.conf Path to the host
Get into docker Containers :
docker exec -it 0462139f6b01 "/bin/bash"
among 0462139f6b01 For containers id
If docker The container is inconsistent with the actual time , The time in the container can be modified
# Get into docker Execute after container
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
or
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
copyright:author[goodlook0123],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130816043697.html