Chaos Engineering
Published in

Chaos Engineering

How to use Gremlin to blackhole an external address from a container

In this tutorial, we’ll be using Gremlin to run a blackhole attack that blocks an external address. In this example, we’ll block access to

First, we’ll launch our container, a simple ubuntu container:

Obtain the container id, in this example it is 30d570653c9f

Now we’ll hop in the container to run curl and confirm the blackhole is working as expected:

Curl to get

The result from curling

Now we’ll block the ability to reach

In this example I am spinning up a gremlin agent to run an attack on the container we created, it is then blocking the ability for that container to reach for 3000 seconds:



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store