Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No cache in docker image? #3087

Closed
terion-name opened this issue Jul 22, 2020 · 2 comments
Closed

No cache in docker image? #3087

terion-name opened this issue Jul 22, 2020 · 2 comments

Comments

@terion-name
Copy link

Dockerfile states that browsers are backed and in /home/pwuser/.cache:

# Browsers will remain downloaded in `/home/pwuser/.cache/ms-playwright`.

But:

FROM mcr.microsoft.com/playwright:bionic
RUN ls -a /home/pwuser/
RUN ls -a /home/pwuser/.cache
Step 1/15 : FROM mcr.microsoft.com/playwright:bionic
 ---> df9b3cf353df
Step 2/15 : RUN ls -a /home/pwuser/
 ---> Running in d0afe50cc005
.
..
Downloads
Removing intermediate container d0afe50cc005
 ---> eb750a35c019
Step 3/15 : RUN ls -a /home/pwuser/.cache
 ---> Running in 659ee48e0f71
ls: cannot access '/home/pwuser/.cache': No such file or directory

What's wrong?

@mxschmitt
Copy link
Member

mxschmitt commented Jul 22, 2020

Hi!

So actually this feature is so now that it's not even released 😄, it will be available in the :bionic tag in the next release.

If you want to use it already, you can try the :dev tag, but in this Docker image, only the browsers of the latest @next release are baked in. So take it with caution.

➜  playwright git:(master) ✗ docker run -it mcr.microsoft.com/playwright:dev /bin/bash
Unable to find image 'mcr.microsoft.com/playwright:dev' locally
dev: Pulling from playwright
a1125296b23d: Pull complete 
3c742a4a0f38: Pull complete 
4c5ea3b32996: Pull complete 
1b4be91ead68: Pull complete 
a7f973792433: Pull complete 
9d51d0985b85: Pull complete 
5d96ba29efdf: Pull complete 
7e389cae5436: Pull complete 
d25b65ef90f5: Pull complete 
01941162c221: Pull complete 
f77b59162dfc: Pull complete 
2b144d1e3db7: Pull complete 
640c61237cee: Pull complete 
272b2684d71d: Pull complete 
Digest: sha256:55e1c81161c0e5ecfd624a67d0f14b40c792007bdc3edc04cf5e458ed14d55ed
Status: Downloaded newer image for mcr.microsoft.com/playwright:dev
pwuser@fb6693eb2fc0:/$ ls /home/pwuser/.cache/ms-playwright/
.links/          chromium-790602/ firefox-1134/    webkit-1308/     
pwuser@fb6693eb2fc0:/$ ls /home/pwuser/.cache/ms-playwright/
chromium-790602  firefox-1134  webkit-1308
pwuser@fb6693eb2fc0:/$ 

@terion-name
Copy link
Author

@mxschmitt oops) to early) well, ok, not urgent, will wait) thank you)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants