Categories: Shopware

Shopware 6 – Docker installation in Ubuntu 20.04 or 20.10

After the creation of development environment your setup fulfills the Shopware 6 requirements. If you choose to Docker installation follow these steps to install Shopware 6 in Ubuntu.

Preparation

Per default the development template has shopware/platform in the version dev-master as requirement in its composer.json file. This always corresponds to the latest commit on the master branch on GitHub.

# Clone the development template
$ git clone https://github.com/shopware/development.git
$ cd development

#Clone the platform code manually
$ rm -rf platform
$ git clone https://github.com/shopware/platform.git

Normally, Shopware platform code would be placed into a vendor/shopware/platform directory where you don’t want to change any code. Thus we’ve cloned platform manually to work with code itself. Otherwise IDEs would have prevent you for changing any code in the vendor directory.

Docker Installation

Docker installation is the easiest way to get a running Shopware 6 and can be set with three lines of following code.

# Build and start the container
$ ./psh.phar docker:start

# Access the application container
$ ./psh.phar docker:ssh

# Execute the installer inside the application container 
$ ./psh.phar install

This may take a while since many caches need to be generated on first execution, but only on first execution.

Check http://localhost:8000/ to be sure that installation succeeded.

Have fun!

Emre KARABULUT

Hi, I’m Emre KARABULUT, 29, and I am the owner of a small (but perfectly formed) design studio called Minimalist Art & Design based in Istanbul, which specialises in Blog and User Interface design. I help entrepreneurs and small business owners create a unique brand and online presence which gives them a powerful platform to reach out to their customers and markets.

Recent Posts

Authenticating with the Apple Search Ads API

There are many methods for using APIs. In order to understand it better, lets take…

4 years ago

How To Add Swap Space on Ubuntu 20.04 or 20.10

One way to guard against out-of-memory errors in applications is to add some swap space.…

4 years ago

Install Docker-Compose on Ubuntu 20.04 or 20.10

Docker Compose is a tool that allows you to run multi-container application environments based on…

4 years ago

Shopware 6 – Local installation in Ubuntu 20.04 or 20.10

After the creation of development environment your setup fulfills the Shopware 6 requirements. If you…

4 years ago

Shopware 6 – Installing System Requirements in Ubuntu 20.04 or 20.10

To create a development environment in fresh install of Linux - Ubuntu 20.04 (Focal Fossa)…

4 years ago

Install Docker on Ubuntu 20.04 or 20.10

Make sure your Ubuntu is up to date and patched. $ sudo apt update $…

4 years ago