Skip to content

Commit

Permalink
Added --net="host" to docker run
Browse files Browse the repository at this point in the history
Added --net="host" to docker run for connections to work
  • Loading branch information
carloscasalar authored Apr 3, 2017
1 parent 88b00ff commit 19ffdba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Build it like this:

Connect to a running Oracle database like this

`docker run --interactive -e USERNAME=username -e PASSWORD=password -e NET_SERVICE_NAME=XE -v /host/scripts/dir:/usr/workdir -v /host/oracle_home/network/admin:/usr/network/admin plus`
`docker run --interactive -e USERNAME=username -e PASSWORD=password -e NET_SERVICE_NAME=XE -v /host/scripts/dir:/usr/workdir -v /host/oracle_home/network/admin:/usr/network/admin --net="host" plus`

If the target database is inside another container you can link it:
`docker run --interactive --link database_container_name:name_of_database_host_in_tnsnames_dot_ora -e USERNAME=username -e PASSWORD=password -e NET_SERVICE_NAME=XE -v /host/scripts/dir:/usr/workdir -v /host/oracle_home/network/admin:/usr/network/admin plus`
Expand Down

0 comments on commit 19ffdba

Please sign in to comment.