mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
change "Web" to "web" to match case-sensitive name used for creation; enquoted bash cd command for un-tar example
Signed-off-by: Victor I. Wood <viw@t2am.com>
This commit is contained in:
parent
a3065fa48f
commit
ac526193af
2 changed files with 2 additions and 2 deletions
|
@ -260,7 +260,7 @@ elsewhere. Create a new container.
|
||||||
|
|
||||||
Then un-tar the backup file in the new container's data volume.
|
Then un-tar the backup file in the new container's data volume.
|
||||||
|
|
||||||
$ docker run --volumes-from dbstore2 -v $(pwd):/backup ubuntu cd /dbdata && tar xvf /backup/backup.tar
|
$ docker run --volumes-from dbstore2 -v $(pwd):/backup ubuntu bash -c "cd /dbdata && tar xvf /backup/backup.tar"
|
||||||
|
|
||||||
You can use the techniques above to automate backup, migration and
|
You can use the techniques above to automate backup, migration and
|
||||||
restore testing using your preferred tools.
|
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
|
||||||
|
|
||||||
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`.
|
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`.
|
||||||
|
|
||||||
$ docker network connect my-bridge-network Web
|
$ docker network connect my-bridge-network web
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue