Error saying "network vme_int not manually attachable."

0 votes

I'm trying to initialize a database schema in a docker swarm.

The swarm has these networks:

$ docker network ls
NETWORK ID          NAME                DRIVER              SCOPE
...
b7dptlu8zyqa        vme_int         overlay             swarm
...

The command I run is

docker run --rm --network vme_internal app:0.1 db upgrade

and i'm getting the following error

docker: Error response from daemon: Could not attach to network vme_internal:
rpc error: code = 7 desc = network vme_internal not manually attachable.
Aug 24, 2018 in Docker by lina
• 8,100 points
59 views

1 answer to this question.

0 votes

Configure the attachable property using the composer file.

networks:
  mynet1:
    driver: overlay
    attachable: true

Use the docker network create to create a network and make it attachable.

docker network create --driver overlay --attachable my-overlay-network
answered Aug 24, 2018 by Nilesh
• 6,900 points

Related Questions In Docker

+6 votes
4 answers

Error: Docker saying "bad file descriptor"

The solution was easy enough. Add these ...READ MORE

answered Mar 26, 2018 in Docker by DragonLord999
• 8,380 points
863 views
0 votes
1 answer

Error saying "context cancelled"

This error occurs when your port is ...READ MORE

answered Jul 26, 2018 in Docker by Kalgi
• 39,270 points
384 views
0 votes
3 answers

Error: docker command not found

If you're using Docker as an administrator, ...READ MORE

answered Apr 29 in Docker by Naina
1,561 views
0 votes
1 answer
0 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
980 views
0 votes
1 answer

Error saying "build" requires 1 argument. See 'docker build --help'

Try adding a period at the end ...READ MORE

answered Jul 18, 2018 in Docker by Nilesh
• 6,900 points
398 views
0 votes
1 answer

Init could not choose ip address error while doing docker swarm init

First look for the public IP of ...READ MORE

answered Aug 23, 2018 in Docker by Nilesh
• 6,900 points
244 views