I swap between 2 different containers regularly, so I have little aliases written for aup and bup, one for each project.
For the different containers, they do:
docker-compose down
cd <a or b directory>
docker-compose up -d
docker-compose logs -f fpm
(the fpm because they are both nginx based stacks)
Works nicely and the log tails I see my containers are ready whereupon I ctrl-d and get to work :)
Of course, there is the inevitable "oh look, I have run out of memory" :( rm images, rm containers, rm volumes, restart :(
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I swap between 2 different containers regularly, so I have little aliases written for aup and bup, one for each project.
For the different containers, they do:
docker-compose down
cd <a or b directory>
docker-compose up -d
docker-compose logs -f fpm
(the fpm because they are both nginx based stacks)
Works nicely and the log tails I see my containers are ready whereupon I ctrl-d and get to work :)
Of course, there is the inevitable "oh look, I have run out of memory" :( rm images, rm containers, rm volumes, restart :(