File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ docker run -it \
232
232
--rm \
233
233
--hostname=" $( hostname) " \
234
234
--env=" DISPLAY" \
235
+ --platform=" linux/amd64" \
235
236
--volume=" ${XAUTHORITY:- ${HOME} / .Xauthority} :/root/.Xauthority:ro" \
236
237
--volume=" /tmp/.X11-unix:/tmp/.X11-unix:ro" \
237
238
scottyhardy/docker-wine /bin/bash
@@ -244,6 +245,7 @@ docker run -it \
244
245
--rm \
245
246
--hostname=" $( hostname) " \
246
247
--env=" RDP_SERVER=yes" \
248
+ --platform=" linux/amd64" \
247
249
--publish=" 3389:3389/tcp" \
248
250
scottyhardy/docker-wine /bin/bash
249
251
```
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ print_help () {
17
17
echo " --tag=VALUE Specify an image tag to use (default is latest)"
18
18
echo " --name=VALUE Name of the docker container instantiated"
19
19
echo " (default is 'wine')"
20
- echo " --arm64 Start the containter using linux/arm64 platform for ARM"
21
- echo " and Apple Silicon (M1) native image"
22
20
echo " --as-root Start the container as root"
23
21
echo " --as-me Start the container using your current username, UID and"
24
22
echo " GID (default when alternate --home value specified)"
@@ -340,6 +338,7 @@ run_container () {
340
338
add_run_arg --rm
341
339
add_run_arg --hostname=" $( hostname) "
342
340
add_run_arg --name=" ${CONTAINER_NAME} "
341
+ add_run_arg --platform=" linux/amd64"
343
342
add_run_arg --shm-size=" ${SHM_SIZE} "
344
343
add_run_arg --workdir=" ${WORKDIR} "
345
344
add_run_arg_timezone
@@ -426,10 +425,6 @@ while [ $# -gt 0 ]; do
426
425
--name=* )
427
426
CONTAINER_NAME=" ${1#* =} "
428
427
;;
429
- --arm64)
430
- add_run_arg --platform=" linux/arm64"
431
- IMAGE_TAG=" arm64"
432
- ;;
433
428
--as-root)
434
429
add_run_arg --env=" RUN_AS_ROOT=yes"
435
430
WORKDIR=" /"
You can’t perform that action at this time.
0 commit comments