Update docs for removal of 'weave run'
This commit is contained in:
1 parent
98e6571059
commit
481214776b
8 files changed
+29
-48
No files matched your search
@@ -3,44 +3,18 @@ title: Launching Containers With Weave Run (without the Proxy)
|
||||
menu_order: 50
|
||||
---
|
||||
|
||||
In prior versions of Weave Net, we supported a command `weave run`
|
||||
which would run a container and attach it to the Weave Network.
|
||||
|
||||
If you don't want to use the proxy, you can also launch
|
||||
containers on to the Weave network using `weave run`:
|
||||
This command always had limitations, and now we have Docker plugins
|
||||
and the Weave Net Docker API Proxy which do not have those
|
||||
limitations, we have removed `weave run`.
|
||||
|
||||
$ weave run -ti weaveworks/ubuntu
|
||||
If you have scripts using `weave run`, you can achieve exactly the
|
||||
same effect by combining `docker run` and `weave attach`; see
|
||||
[Dynamically Attaching and Detaching
|
||||
Containers](/site/using-weave/dynamically-attach-containers.md) for
|
||||
details.
|
||||
|
||||
The arguments after `run` are passed through to `docker run`. Therefore you
|
||||
can freely specify whatever Docker options you need.
|
||||
|
||||
Once the container is started, `weave run` attaches it to the Weave network, and in
|
||||
this example, it obtains an automatically allocated IP.
|
||||
|
||||
You can specify IP addresses manually instead:
|
||||
|
||||
$ weave run 10.2.1.1/24 -ti weaveworks/ubuntu
|
||||
|
||||
`weave run` rewrites `/etc/hosts` in the same way
|
||||
[the proxy does](/site/weave-docker-api/name-resolution-proxy.md). If you need to keep
|
||||
the original file, specify `--no-rewrite-hosts` when running
|
||||
the container:
|
||||
|
||||
$ weave run --no-rewrite-hosts 10.2.1.1/24 -ti weaveworks/ubuntu
|
||||
|
||||
There are some limitations to starting containers using `weave run`:
|
||||
|
||||
* containers are always started in the background, i.e. the equivalent
|
||||
of always supplying the -d option to docker run
|
||||
* the --rm option to docker run, for automatically removing containers
|
||||
after they stop, is not available
|
||||
* the Weave network interface may not be available immediately on
|
||||
container startup.
|
||||
|
||||
Finally, there is a `weave start` command which starts existing
|
||||
containers using `docker start` and attaches them to the Weave network.
|
||||
|
||||
|
||||
**See Also**
|
||||
|
||||
* [Setting Up The Weave Docker API Proxy](/site/weave-docker-api.md)
|
||||
* [Securing Docker Communications With TLS](/site/weave-docker-api/securing-proxy.md)
|
||||
* [Name Resolution via `/etc/hosts`](/site/weave-docker-api/name-resolution-proxy.md)
|
||||
The `weave start` and `weave restart` commands have also been removed,
|
||||
for the same reasons.
|
||||
@@ -64,4 +64,3 @@ route, add the `--no-multicast-route` flag to `weave launch-proxy`.
|
||||
|
||||
* [Setting Up The Weave Docker API Proxy](/site/weave-docker-api.md)
|
||||
* [Securing Docker Communications With TLS](/site/weave-docker-api/securing-proxy.md)
|
||||
* [Launching Containers With Weave Run (without the Proxy)](/site/weave-docker-api/launching-without-proxy.md)
|
||||
Reference in new issue
Block a user