layout | type |
---|---|
default |
get-started |
Wocker is a local WordPress development environment. Since it's based on Docker, it takes just 3 seconds to create every new installation of WordPress.
$ vagrant plugin install vagrant-hostsupdater
$ git clone https://github.com/wckr/wocker.git && cd wocker
$ vagrant up
This could take a while on the first run as your local machine downloads the required files. Watch as the script ends, as an administrator or su password may be required. The first default container wocker
will be running after the provision finishes successfully.
Note: on Windows, run Cmd, PowerShell or other terminals as an administrator.
- User:
admin
- Pass:
admin
- Name:
wordpress
- User:
wordpress
- Pass:
wordpress
- Local machine:
data
- Guest machine:
/home/bargee/data
Every container created through Wocker automatically has it’s volumes exposed on your local machine. Wocker exposes a container’s volume data under data/<container's name>
.
Before running a new one, you must stop or remove the running Wocker container.
$ vagrant ssh
wocker ~ $ wocker stop CONTAINER
OR
wocker ~ $ wocker rm -f CONTAINER
CONTAINER
can be a name or ID of a container. You can use wocker ps
(Docker alias) to list only running containers.
If CONTAINER
is omitted in wocker stop
, all running containers will be stopped.
Note: the wocker rm -f
command forcely remove containers and synced folders in your local data
directory. Please back up the files before removing containers if you need them.
wocker ~ $ wocker stop wocker
The first default container wocker
will be running after your first vagrant up
.
wocker ~ $ wocker run
You can use the name flag to assign a specific name to the container.
wocker ~ $ wocker run --name test
Before a restart, you must stop or remove the running Wocker container.
$ vagrant ssh
wocker ~ $ wocker stop CONTAINER
or
wocker ~ $ wocker rm -f CONTAINER
CONTAINER
can be a name or ID of a container.
If CONTAINER
is omitted in wocker stop
, all running containers will be stopped.
Note: the wocker rm -f
command forcely remove containers and synced folders in your local data
directory. Please back up the files before removing containers if you need them.
wocker ~ $ wocker stop test
wocker ~ $ wocker start CONTAINER
CONTAINER
can be a name or ID of a container. You can use wocker ps -a
(Docker alias) to list all containers including stopped ones.
wocker ~ $ wocker start wocker
wocker ~ $ exit
$ vagrant halt
$ vagrant up
$ vagrant ssh
wocker ~ $ wocker start CONTAINER
or
wocker ~ $ wocker run
CONTAINER
can be a name or ID of a container.
wocker ~ $ wocker start wocker