1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Docker

Connected

Exercise

Adding containers to a network

Now that you've successfully created a new network, you'd like to configure some containers to use it and verify connectivity between them. There is a docker network already created for you with the name test_network.

Instructions 1/2

undefined XP
  • 1
    • First, there is a container already running on the system with the name alpine_prime. Add it to the test_network using the appropriate command.
  • 2
    • Create a new interactive Docker container (i.e., use the -it flags) and add it to the test_network with the correct docker command. Use the alpine:3.19.2 image and use the starting command ping -c 3 alpine_prime. You should see three successful ping replies before it exits.