Skip to content

Commit 6d0b629

Browse files
author
Quentin Perez
committed
Merge pull request #26 from scaleway/improve-readme
Improve README.md
2 parents 3f12b07 + 2702149 commit 6d0b629

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ Options:
7070

7171
### 3. Create your machine
7272

73-
Ensure you have your `ACCESS KEY` and a `TOKEN`
73+
You need to configure your `ACCESS_KEY` and `TOKEN`, we suggest you to install [scw](https://github.com/scaleway/scaleway-cli) and create a credential file using `scw login`.
74+
75+
In the following example, authentication is done without any other dependencies using the `--scaleway-token=TOKEN` and `--scaleway-organization=ACCESS_KEY` parameters.
7476

7577
```
7678
$> docker-machine create -d scaleway --scaleway-token=TOKEN --scaleway-organization=ACCESS_KEY --scaleway-name="cloud-scaleway-1" cloud-scaleway
@@ -93,26 +95,28 @@ Docker is up and running!
9395
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env cloud-scaleway
9496
```
9597

98+
Note that you can store these parameters in the environment variables `SCALEWAY_TOKEN` and `SCALEWAY_ORGANIZATION`.
99+
96100
### 4. Test your machine
97101

98-
```
99-
$> eval $(docker-machine env cloud-scaleway) # loads environment variables to use your machine
102+
```console
103+
$ eval $(docker-machine env cloud-scaleway) # loads environment variables to use your machine
100104

101-
$> docker-machine ls # cloud-scaleway is now activated
105+
$ docker-machine ls # cloud-scaleway is now activated
102106
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
103107
cloud-scaleway * scaleway Running tcp://212.47.248.251:2376 v1.10.3
104108
dev - virtualbox Running tcp://192.168.99.100:2376 v1.9.1
105109

106-
$> docker run -d -p 80:80 owncloud:8.1 # starts a owncloud image
110+
$ docker run -d -p 80:80 owncloud:8.1 # starts a owncloud image
107111
Unable to find image 'owncloud:8.1' locally
108112
8.1: Pulling from library/owncloud
109113
...
110114

111-
$> docker ps # displays your containers
115+
$ docker ps # displays your containers
112116
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
113117
ebdd86fcd18b owncloud:8.1 "/entrypoint.sh apach" 22 seconds ago Up 20 seconds 0.0.0.0:80->80/tcp elegant_shirley
114118

115-
$> curl --silent http://212.47.248.251 | head -n1 # you can also open your browser with your IP
119+
$ curl --silent http://212.47.248.251 | head -n1 # you can also open your browser with your IP
116120
<!DOCTYPE html>
117121
```
118122

0 commit comments

Comments
 (0)