Skip to content

Commit

Permalink
Use icr.io instead of Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurbarr committed Apr 25, 2022
1 parent 361011e commit 542d0e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ You'll also have to point to the client keystore location from the `env.json` fi

Give it a name, for example `mqtls` so you can differentiate it from your other MQ container when you `docker ps`, and point it at the location where you copied the server certificate.

`docker run --name mqtls --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --volume ___PATH TO SERVER_KEY/CERTIFICATE DIRECTORY___:/etc/mqm/pki/keys/mykey --publish 1415:1414 --publish 9444:9443 --detach --env MQ_APP_PASSWORD=passw0rd ibmcom/mq:latest`
`docker run --name mqtls --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --volume ___PATH TO SERVER_KEY/CERTIFICATE DIRECTORY___:/etc/mqm/pki/keys/mykey --publish 1415:1414 --publish 9444:9443 --detach --env MQ_APP_PASSWORD=passw0rd icr.io/ibm-messaging/mq:latest`

Remember to use a secure password for `MQ_APP_PASSWORD`.

Expand Down
10 changes: 5 additions & 5 deletions transactions/JMS/SE/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ If you've already used Docker, just run these commands to get set up:
Get the latest container image from Docker Hub:

```
docker pull ibmcom/mq:latest
docker pull icr.io/ibm-messaging/mq:latest
```

Check you got the image:
Expand All @@ -54,7 +54,7 @@ docker images
You'll see:
```
REPOSITORY TAG IMAGE ID CREATED SIZE
ibmcom/mq latest 6bd9802953a3 7 weeks ago 939MB
icr.io/ibm-messaging/mq latest a583b9db53a6 5 weeks ago 989MB
```

Create a volume to preserve data separate from the container:
Expand All @@ -66,7 +66,7 @@ docker volume create qm1data
Run the container:

```
docker run --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --volume qm1data:/mnt/mqm --publish 1414:1414 --publish 9443:9443 --detach --env MQ_APP_PASSWORD=passw0rd ibmcom/mq:latest
docker run --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --volume qm1data:/mnt/mqm --publish 1414:1414 --publish 9443:9443 --detach --env MQ_APP_PASSWORD=passw0rd icr.io/ibm-messaging/mq:latest
```

Check the container is up and running:
Expand All @@ -78,8 +78,8 @@ docker ps
You'll see:

```
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
someID ibmcom/mq:latest "runmqdevserver" 2 days ago Up 2 days 0.0.0.0:1414->1414/tcp, 0.0.0.0:9443->9443/tcp, 9157/tcp cool_name
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
someID icr.io/ibm-messaging/mq:latest "runmqdevserver" 2 days ago Up 2 days 0.0.0.0:1414->1414/tcp, 0.0.0.0:9443->9443/tcp, 9157/tcp cool_name
```


Expand Down
12 changes: 6 additions & 6 deletions transactions/JMS/Spring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ Follow [this tutorial](https://developer.ibm.com/components/ibm-mq/tutorials/mq-

If you've already used Docker, just run these commands to get set up:

Get the latest container image from Docker Hub:
Get the latest container image:

```
docker pull ibmcom/mq:latest
docker pull icr.io/ibm-messaging/mq:latest
```

Check you got the image:
Expand All @@ -51,7 +51,7 @@ docker images
You'll see:
```
REPOSITORY TAG IMAGE ID CREATED SIZE
ibmcom/mq latest 6bd9802953a3 7 weeks ago 939MB
icr.io/ibm-messaging/mq latest a583b9db53a6 5 weeks ago 989MB
```

Create a volume to preserve data separate from the container:
Expand All @@ -63,7 +63,7 @@ docker volume create qm1data
Run the container:

```
docker run --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --volume qm1data:/mnt/mqm --publish 1414:1414 --publish 9443:9443 --detach --env MQ_APP_PASSWORD=passw0rd ibmcom/mq:latest
docker run --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --volume qm1data:/mnt/mqm --publish 1414:1414 --publish 9443:9443 --detach --env MQ_APP_PASSWORD=passw0rd icr.io/ibm-messaging/mq:latest
```

Check the container is up and running:
Expand All @@ -75,8 +75,8 @@ docker ps
You'll see:

```
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
someID ibmcom/mq:latest "runmqdevserver" 2 days ago Up 2 days 0.0.0.0:1414->1414/tcp, 0.0.0.0:9443->9443/tcp, 9157/tcp cool_name
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
someID icr.io/ibm-messaging/mq:latest "runmqdevserver" 2 days ago Up 2 days 0.0.0.0:1414->1414/tcp, 0.0.0.0:9443->9443/tcp, 9157/tcp cool_name
```


Expand Down

0 comments on commit 542d0e8

Please sign in to comment.