mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2024-10-30 00:23:45 -05:00
squash naked images for hub.docker.com
This commit is contained in:
parent
ff250fa0ca
commit
50c5dce110
@ -215,6 +215,7 @@ docker-osx:latest () {
|
|||||||
|
|
||||||
docker-osx:naked () {
|
docker-osx:naked () {
|
||||||
docker build ${NO_CACHE} \
|
docker build ${NO_CACHE} \
|
||||||
|
--squash \
|
||||||
--build-arg RANKMIRRORS=true \
|
--build-arg RANKMIRRORS=true \
|
||||||
--build-arg MIRROR_COUNTRY="${MIRROR_COUNTRY}" \
|
--build-arg MIRROR_COUNTRY="${MIRROR_COUNTRY}" \
|
||||||
-f ./Dockerfile.naked \
|
-f ./Dockerfile.naked \
|
||||||
@ -225,6 +226,7 @@ docker-osx:naked () {
|
|||||||
|
|
||||||
docker-osx:naked-auto () {
|
docker-osx:naked-auto () {
|
||||||
docker build ${NO_CACHE} \
|
docker build ${NO_CACHE} \
|
||||||
|
--squash \
|
||||||
--build-arg RANKMIRRORS=true \
|
--build-arg RANKMIRRORS=true \
|
||||||
--build-arg MIRROR_COUNTRY="${MIRROR_COUNTRY}" \
|
--build-arg MIRROR_COUNTRY="${MIRROR_COUNTRY}" \
|
||||||
-f ./Dockerfile.naked-auto \
|
-f ./Dockerfile.naked-auto \
|
||||||
@ -272,6 +274,12 @@ docker-osx:auto-big-sur () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
reset_docker_hard () {
|
reset_docker_hard () {
|
||||||
|
|
||||||
|
tee /etc/docker/daemon.json <<'EOF'
|
||||||
|
{
|
||||||
|
"experimental": true
|
||||||
|
}
|
||||||
|
EOF
|
||||||
systemctl disable --now docker
|
systemctl disable --now docker
|
||||||
systemctl disable --now docker.socket
|
systemctl disable --now docker.socket
|
||||||
systemctl stop docker
|
systemctl stop docker
|
||||||
@ -298,7 +306,7 @@ export DEBIAN_FRONTEND=noninteractive \
|
|||||||
; echo start_xvfb \
|
; echo start_xvfb \
|
||||||
; start_vnc \
|
; start_vnc \
|
||||||
; enable_kvm \
|
; enable_kvm \
|
||||||
; echo reset_docker_hard \
|
; reset_docker_hard \
|
||||||
; echo killall Xvfb \
|
; echo killall Xvfb \
|
||||||
; clone_repo "${BRANCH}" "${REPO}" \
|
; clone_repo "${BRANCH}" "${REPO}" \
|
||||||
; cd Docker-OSX \
|
; cd Docker-OSX \
|
||||||
|
Loading…
Reference in New Issue
Block a user