Comments (5)
A note, Ubuntu images don't seem to have the ip command available anymore. I tried with ubuntu:16:04
. Use ubuntu:14.04
.
from blockade.
I haven't seen that error before, but it can come from a few conditions in this method: https://github.com/dcm-oss/blockade/blob/6c79655d6550962c5385becb053270a520a93202/blockade/net.py#L67-L96
This method attempts to find the network interface device name for a container, and this is an area that has changed a few times, with different docker releases and container drivers. There must be some case we are not handling. Can you please provide:
- the output of
docker version
- then launch a container (of the image you are using with blockade), and provide the output of the following two commands (substituting in your container ID):
docker exec $CONTAINER_ID ip link show eth0
ip link
from blockade.
It seems the issue is that if there is anything that causes the container to hit an error on run, this is the error that manifests. In my case, I had a typo in the volume I was attempting to mount.
So I think the problem here is that the error is misleading; or rather, some set of problems leading up to this point are not caught.
from blockade.
Interesting.. I'm surprised the run didn't fail earlier. I agree the error messages need to be better for this case. I'll keep this issue open as a reminder to address that.
Thanks for reporting this!
from blockade.
Closing this issue. In 0.3.1, blockade has a couple of fixes that address problems discussed here:
- Vastly improved error handling around finding a container's interface
ip
is no longer required to be installed in containers. Instead Blockade directly reads the/sys
FS to find the needed information from the container.
from blockade.
Related Issues (20)
- Use external UDN docker network HOT 1
- Improve logging
- Connection timeout
- Handle more than one connection at a time HOT 1
- multiple ports and networks in blockade.yml HOT 1
- UDP port expose support
- What would it take to add support for Docker Swarm please? HOT 1
- Networking with blockade - restrict communication HOT 4
- Is it possible to assign static IP address to the containers? HOT 1
- Is it possible to add a running container to blockade? HOT 1
- Blockade REST API Setup Parameters HOT 1
- net-tools is now a hard dependency HOT 2
- Error: a blockade already exists in here - you may want..
- How to use blockade API inside container HOT 1
- Support environment variables in volume names HOT 2
- Chaining of Commands e.g. flaky + slow HOT 5
- Blockade install via pip broken for mac users HOT 2
- A few questions...
- Proposing a PR to fix a few small typos
- Blockade unable to start after image re-build HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blockade.