Skip to content

Instantly share code, notes, and snippets.

@RaghavSood
Created July 20, 2020 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RaghavSood/579928ec313aa946f351358354ce8a12 to your computer and use it in GitHub Desktop.
Save RaghavSood/579928ec313aa946f351358354ce8a12 to your computer and use it in GitHub Desktop.
example.bash
raghavsood@t580:~$ ssh root@192.168.1.102
Last login: Mon Jul 20 09:36:03 2020 from 192.168.1.3
[root@owl:~]# docker
docker: command not found
[root@owl:~]# nix-shell -p docker
these paths will be fetched (67.23 MiB download, 319.57 MiB unpacked):
/nix/store/2wxscnmlq1hhabzi55gn2zjp4bsixh37-perl5.30.1-FCGI-0.79
/nix/store/39jxzicp250jqsspmizahm2fzm5a3nz8-docker-19.03.11
/nix/store/aaq5zpdkm0swan9sx3kiawawqpca1yhv-git-2.25.4
/nix/store/d11crgk1dyxrmvs112ln3r8243ym6rw8-perl5.30.1-CGI-Fast-2.15
/nix/store/dqwy3paw8zc79gfj0d562df3fzaj83ax-perl5.30.1-TermReadKey-2.38
/nix/store/dwbf8kf8hf8868vsw0vhchpsq7ax73ry-docker-init-19.03.11
/nix/store/mj9ymazn8y6nww0aimwf1fp7ks04928n-docker-proxy-7b2b1feb1de4817d522cc372af149ff48d25028e-bin
/nix/store/nifilglgcvm9ykswc331qga5r44ic622-perl5.30.1-HTML-TagCloud-0.38
/nix/store/p2czcak1ia75m9g053wg3k91jbj2f71x-docker-runc-19.03.11-bin
/nix/store/pj7f7iqqig7pbrprg9mp7j2gffqxvrk6-gettext-0.20.1
/nix/store/q23z340xjkddcnzwsmdlxns792a77w88-perl5.30.1-FCGI-ProcManager-0.28
/nix/store/r473ydcxv750fchh7p9vjnc5pqc09wvg-perl5.30.1-CGI-4.45
/nix/store/s8w08x53pqpi6h6cnjnx93m6k2n0dvkz-docker-containerd-19.03.11-bin
copying path '/nix/store/s8w08x53pqpi6h6cnjnx93m6k2n0dvkz-docker-containerd-19.03.11-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/dwbf8kf8hf8868vsw0vhchpsq7ax73ry-docker-init-19.03.11' from 'https://cache.nixos.org'...
copying path '/nix/store/mj9ymazn8y6nww0aimwf1fp7ks04928n-docker-proxy-7b2b1feb1de4817d522cc372af149ff48d25028e-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/p2czcak1ia75m9g053wg3k91jbj2f71x-docker-runc-19.03.11-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/pj7f7iqqig7pbrprg9mp7j2gffqxvrk6-gettext-0.20.1' from 'https://cache.nixos.org'...
copying path '/nix/store/r473ydcxv750fchh7p9vjnc5pqc09wvg-perl5.30.1-CGI-4.45' from 'https://cache.nixos.org'...
copying path '/nix/store/2wxscnmlq1hhabzi55gn2zjp4bsixh37-perl5.30.1-FCGI-0.79' from 'https://cache.nixos.org'...
copying path '/nix/store/q23z340xjkddcnzwsmdlxns792a77w88-perl5.30.1-FCGI-ProcManager-0.28' from 'https://cache.nixos.org'...
copying path '/nix/store/d11crgk1dyxrmvs112ln3r8243ym6rw8-perl5.30.1-CGI-Fast-2.15' from 'https://cache.nixos.org'...
copying path '/nix/store/nifilglgcvm9ykswc331qga5r44ic622-perl5.30.1-HTML-TagCloud-0.38' from 'https://cache.nixos.org'...
copying path '/nix/store/dqwy3paw8zc79gfj0d562df3fzaj83ax-perl5.30.1-TermReadKey-2.38' from 'https://cache.nixos.org'...
copying path '/nix/store/aaq5zpdkm0swan9sx3kiawawqpca1yhv-git-2.25.4' from 'https://cache.nixos.org'...
copying path '/nix/store/39jxzicp250jqsspmizahm2fzm5a3nz8-docker-19.03.11' from 'https://cache.nixos.org'...
[nix-shell:~]# docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[nix-shell:~]# exit
[root@owl:~]# docker
docker: command not found
[root@owl:~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment