You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/06/12 11:06:51 UTC

svn commit: r1798435 - /sling/trunk/launchpad/docker/README.txt

Author: rombert
Date: Mon Jun 12 11:06:51 2017
New Revision: 1798435

URL: http://svn.apache.org/viewvc?rev=1798435&view=rev
Log:
SLING-6201 - Deploy Sling 9 docker image to Docker Hub

Remove usage of sudo from build instructions

Modified:
    sling/trunk/launchpad/docker/README.txt

Modified: sling/trunk/launchpad/docker/README.txt
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/docker/README.txt?rev=1798435&r1=1798434&r2=1798435&view=diff
==============================================================================
--- sling/trunk/launchpad/docker/README.txt (original)
+++ sling/trunk/launchpad/docker/README.txt Mon Jun 12 11:06:51 2017
@@ -9,7 +9,7 @@ root directory.
 Building a Docker image
 ---------------------------------------------
 
-$ sudo docker build -t sling .
+$ docker build -t sling .
 
 Running a standalone Sling instance
 ---------------------------------------------
@@ -18,7 +18,7 @@ To launch a docker instance named 'my-sl
 port 8080 on the local machine, and with the /opt/sling/sling volume
 mounted at /srv/docker/sling in the local machine, execute:
 
-$ sudo docker run -ti -p 8080:8080 -v /srv/docker/sling:/opt/sling/sling \
+$ docker run -ti -p 8080:8080 -v /srv/docker/sling:/opt/sling/sling \
     --name my-sling-container sling
 
 
@@ -41,10 +41,10 @@ First of all, build the image tagged for
 should tag it with both the 'latest' and the version number of the launchpad
 release. For the 8 release, this would translate into
 
-$ sudo docker build -t apachesling/sling:8 .
-$ sudo docker build -t apachesling/sling:latest .
+$ docker build -t apachesling/sling:8 .
+$ docker build -t apachesling/sling:latest .
 
 Then, push the image
 
-$ sudo docker push apachesling/sling:8
-$ sudo docker push apachesling/sling:latest
+$ docker push apachesling/sling:8
+$ docker push apachesling/sling:latest