Shell 判断系统类型
17 May 2017case “$OSTYPE” in
linux*)
echo “Set Envs for linux”
;;
darwin*)
echo “Set Envs for Mac”
;;
*)
echo “Unsupported OS, Exit”
exit 100
;;
esac
case “$OSTYPE” in
linux*)
echo “Set Envs for linux”
;;
darwin*)
echo “Set Envs for Mac”
;;
*)
echo “Unsupported OS, Exit”
exit 100
;;
esac
* What went wrong:
A problem occurred configuring project ':mi'.
> Failed to notify project evaluation listener.
> You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 25].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
> You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 25].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
解决方案:
android update sdk -u在过程中选择同意[y]
docker images
docker images --format "{{.ID}}: {{.Repository}}"
docker images --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}"
docker rmi $(docker images -q -f dangling=true)
docker exec -it name bash
docker commit \--author "name" \--message "message" \webserver \nginx:v2sha256:000000000.....
docker exec -u root -it [container_id] bash
docker run -d -v hostdata:/containerdata xxxx
docker run -p [host port]:[container port] xxx
此方法会清除所有现有镜像,需要做好镜像备份
qemu-img create -f qcow2 ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2 100G
docker save -o ~/image_save.tar image
docker load -i ~/image_save.tar
docker logindocker tag [image id] username/imagename:versiondocker push username/imagename
sudo usermod -aG docker $USER