docker-sync: command not found

Created on 11 Jan 2019  路  6Comments  路  Source: EugenMayer/docker-sync

Error/Feature Requestion/Docs

$ gem install docker-sync

ERROR: While executing gem ... (Errno::EACCES) Permission denied @ rb_sysopen - /usr/local/lib/ruby/gems/2.5.0/gems/docker-sync-0.5.9/Thorfile

$ sudo gem install docker-sync

Successfully installed docker-sync-0.5.9
Parsing documentation for docker-sync-0.5.9
Done installing documentation for docker-sync after 0 seconds
1 gem installed

$ docker-sync
-bash: docker-sync: command not found

Docker Driver

d4m

Sync strategy

native_osx

### your docker-sync.yml
-

OS

OSX 10.14.2

Most helpful comment

works if I do:

echo 'export PATH="/Users/[MY_USER]/.gem/ruby/2.3.0/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

All 6 comments

rehash or whatever you have in your shell, the usual binary cache, not ds related

$ gem install docker-sync
Fetching: thor-0.20.3.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.


$ sudo gem install docker-sync
Password:
Fetching: thor-0.20.3.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/bin directory.


$ gem install docker-sync --user-install
WARNING:  You don't have /Users/[MY_USER]/.gem/ruby/2.3.0/bin in your PATH,
      gem executables will not run.
Successfully installed thor-0.20.3
Fetching: gem_update_checker-0.2.0.gem (100%)
Successfully installed gem_update_checker-0.2.0
Fetching: backticks-1.0.2.gem (100%)
...

restarted shell

$ docker-sync
-bash: docker-sync: command not found

what gives? :S

High Sierra

works if I do:

echo 'export PATH="/Users/[MY_USER]/.gem/ruby/2.3.0/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

if you are on a mac dont use sudo, instead add --user-install

gem install docker-sync --user-install

It worked for me

sudo gem install docker-sync -n /usr/local/bin

It worked for me

sudo gem install docker-sync -n /usr/local/bin

work for me too

Was this page helpful?
0 / 5 - 0 ratings

Related issues

YouriT picture YouriT  路  4Comments

aandrushchenko picture aandrushchenko  路  5Comments

brucemead picture brucemead  路  3Comments

donnykurnia picture donnykurnia  路  8Comments

derschatta picture derschatta  路  8Comments