-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker存档 #81
Labels
技术文章
技术文章
Comments
Backupdocker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql Restorecat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE |
|
更改全部为restart-always docker container update --restart=always $(docker inspect -f "{{print .Config.Hostname ' ' .HostConfig.RestartPolicy }}" $(docker ps | awk '{print $1}' | xargs) | awk '/no/ {print substr($1,0,10)}' ) |
傻逼 docker !!!! 如何解决这个傻逼错误 docker/for-win#4884 试验了一个小时: 如果用 wsl 的话,这里面大多数解决方案都是错的。
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker 拷贝文件
{host} docker run -v /path/to/hostdir:/mnt --name my_container my_image
{host} docker exec -it my_container bash
{container} cp /mnt/sourcefile /path/to/destfile
docker cp foo.txt mycontainer:/foo.txt
The text was updated successfully, but these errors were encountered: