Skip to content

Commit

Permalink
#630 Docker image jeroenwillemsen/wrongsecrets:1.5.14-no-vault hangs
Browse files Browse the repository at this point in the history
  • Loading branch information
drnow4u committed May 17, 2023
1 parent e30b314 commit 8ff01a4
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,14 +482,16 @@ And then at [http://localhost:3000](http://localhost:3000).

Note: be careful with trying to deploy the `jeroenwillemsen/wrongsecrets-desktop` container to Heroku ;-).

## Docker on macOS with M1 and Colima
## Docker on macOS with M1 and Colima (Experimental!)

NOTE: Colima support is experimental.

Using [Colima](https://github.com/abiosoft/colima) (version 0.5.2 when written) you your macOS with Apple Silicon M1
to run Docker image `jeroenwillemsen/wrongsecrets` you try one of:

- switch off Colima
- Change Docker context
- Run Colima with 1 CPU
- change Docker context
- run Colima with 1 CPU

### Switch off Colima

Expand All @@ -501,8 +503,8 @@ and run natively Docker image `jeroenwillemsen/wrongsecrets` on ARM.
### Change Docker context

Running docker image on Colima container runtimes on macOS Ventura with M1 CPU can run very slowly or can hang at some point.
Wrong Secrets provide `arm64` Docker's image and switching to `desktop-linux` context will use native `arm64` image.
To do that in terminal run:
Wrong Secrets provide `arm64` Docker image and switching to `desktop-linux` context will use the native `arm64` image.
To do that in the terminal run:

```shell
docker context ls
Expand All @@ -517,16 +519,10 @@ default moby Current DOCKER_HOST based configuration
desktop-linux moby unix:///Users/YOUR_USER_NAME/.docker/run/docker.sock
```

To switch to `desktop-linux` context run:

```shell
docker context use desktop-linux
```

and now you should be able to run one of above Docker command e.g.:
Now run one of the above Docker commands together with `--context` switch e.g.:

```bash
docker run -p 8080:8080 jeroenwillemsen/wrongsecrets:latest-no-vault
docker --context desktop-linux run -p 8080:8080 jeroenwillemsen/wrongsecrets:latest-no-vault
```

### Run Colima with 1 CPU
Expand Down

0 comments on commit 8ff01a4

Please sign in to comment.