You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.
I have a few dev envs I'm moving from an old laptop over to a new one with Docker etc., hopefully all using this repo.
I will presumably use a separate instance of this repo per project. How do you advise saving out current state of a container to an image and updating the docker yml file.
I created a docker image of the mysql container and then update the yml to use it instead of the mysql:5.7 image, however it didn't seem to preserve the database I had and running docker compose up just created a fresh instance of what seemed to be mysql:5.7 with the name of my new image.
Is there something "Docker Compose" specific needed here?
The text was updated successfully, but these errors were encountered:
@RobLoach - I tried docker-compose build after creating an image from the mysql container and updating the docker_compose.yml and still it creates a container with no drupal database.
Bit of confusion on this one unfortunately. At the moment I have to keep importing the DB into the container:
docker exec -i dockercompose_mysql_1 mysql -udrupal -pdrupal drupal < /dev/docker-compose/databases/db_import.sql
I have a few dev envs I'm moving from an old laptop over to a new one with Docker etc., hopefully all using this repo.
I will presumably use a separate instance of this repo per project. How do you advise saving out current state of a container to an image and updating the docker yml file.
I created a docker image of the mysql container and then update the yml to use it instead of the mysql:5.7 image, however it didn't seem to preserve the database I had and running
docker compose up
just created a fresh instance of what seemed to bemysql:5.7
with the name of my new image.Is there something "Docker Compose" specific needed here?
The text was updated successfully, but these errors were encountered: