Skip to content

Commit 86d2172

Browse files
committed
1 parent 23d831b commit 86d2172

5 files changed

+39
-31
lines changed

docker-without-sudo.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Run Docker commands without sudo
2+
3+
##### 1. Add the `docker` group if it doesn't already exist
4+
5+
```console
6+
$ sudo groupadd docker
7+
```
8+
9+
##### 2. Add the connected user `$USER` to the docker group
10+
11+
Optionally change the username to match your preferred user.
12+
13+
```console
14+
$ sudo gpasswd -a $USER docker
15+
```
16+
17+
##### 3. Restart the `docker` daemon
18+
19+
```console
20+
$ sudo service docker restart
21+
```
22+
23+
If you are on Ubuntu 14.04-15.10, use `docker.io` instead:
24+
25+
```console
26+
$ sudo service docker.io restart
27+
```

docker_without_sudo.md

-20
This file was deleted.

npm-over-proxy.md

-8
This file was deleted.

npm-proxy.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Use npm through a corporate proxy
2+
3+
In some situations you might need use `npm install <cmd>` over a HTTP proxy. Set the proxy URL in the global npm config to make it work:
4+
5+
```console
6+
$ npm config set proxy http://proxy.company.com:8080
7+
$ npm config set https-proxy http://proxy.company.com:8080
8+
```

readme.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@
1010
- [Install npm packages globally without sudo](npm-global-without-sudo.md) *(OS X & Linux)*
1111
- [Run a Node.js server alongside Apache](run-node-server-alongside-apache.md) *(Linux)*
1212
- [Launch app on startup](launch-app-on-startup-osx.md) *(OS X)*
13-
- [Use npm over corporate proxy](npm-over-proxy.md) *(OS X & Linux)*
14-
- [Run docker commands without sudo](docker_without_sudo.md) *(Linux)*
13+
- [Use npm through a corporate proxy](npm-proxy.md) *(OS X & Linux)*
14+
- [Run Docker commands without sudo](docker-without-sudo.md) *(Linux)*
1515

1616

1717
## Authors
18+
1819
[Sindre Sorhus](http://sindresorhus.com),
1920
[Frederick Ros](https://github.com/sleeper),
2021
[Adam Brewer](https://github.com/adamcbrewer),
2122
[Kevin Mårtensson](https://github.com/kevva),
22-
[Hedcler Morais](http://github.com/hedcler),
23+
[Hedcler Morais](https://github.com/hedcler),
2324
You?
2425

2526

0 commit comments

Comments
 (0)