change "Web" to "web" to match case-sensitive name used for creation;…
| ... | ... |
@@ -260,7 +260,7 @@ elsewhere. Create a new container. |
| 260 | 260 |
|
| 261 | 261 |
Then un-tar the backup file in the new container's data volume. |
| 262 | 262 |
|
| 263 |
- $ docker run --volumes-from dbstore2 -v $(pwd):/backup ubuntu cd /dbdata && tar xvf /backup/backup.tar |
|
| 263 |
+ $ docker run --volumes-from dbstore2 -v $(pwd):/backup ubuntu bash -c "cd /dbdata && tar xvf /backup/backup.tar" |
|
| 264 | 264 |
|
| 265 | 265 |
You can use the techniques above to automate backup, migration and |
| 266 | 266 |
restore testing using your preferred tools. |
| ... | ... |
@@ -218,7 +218,7 @@ After a bit, use CTRL-C to end the `ping` and you'll find the ping failed. That |
| 218 | 218 |
|
| 219 | 219 |
Docker networking allows you to attach a container to as many networks as you like. You can also attach an already running container. Go ahead and attach your running `web` app to the `my-bridge-network`. |
| 220 | 220 |
|
| 221 |
- $ docker network connect my-bridge-network Web |
|
| 221 |
+ $ docker network connect my-bridge-network web |
|
| 222 | 222 |
|
| 223 | 223 |
Open a shell into the `db` application again and try the ping command. This time just use the container name `web` rather than the IP Address. |
| 224 | 224 |
|